@@ -13,9 +13,9 @@
|
||||
|
||||
public class TileEntityEndGateway extends TileEntityEnderPortal implements ITickable {
|
||||
|
||||
@@ -119,6 +125,26 @@
|
||||
@@ -120,6 +126,26 @@
|
||||
if (this.exitPortal != null) {
|
||||
BlockPosition blockposition = this.exactTeleport ? this.exitPortal : this.t();
|
||||
BlockPosition blockposition = this.exactTeleport ? this.exitPortal : this.k();
|
||||
|
||||
+ // CraftBukkit start - Fire PlayerTeleportEvent
|
||||
+ if (entity instanceof EntityPlayer) {
|
||||
@@ -40,3 +40,21 @@
|
||||
entity.enderTeleportAndLoad((double) blockposition.getX() + 0.5D, (double) blockposition.getY() + 0.5D, (double) blockposition.getZ() + 0.5D);
|
||||
}
|
||||
|
||||
@@ -155,7 +181,7 @@
|
||||
if (this.exitPortal == null) {
|
||||
this.exitPortal = new BlockPosition(vec3d1.x + 0.5D, 75.0D, vec3d1.z + 0.5D);
|
||||
TileEntityEndGateway.LOGGER.debug("Failed to find suitable block, settling on {}", this.exitPortal);
|
||||
- WorldGenerator.END_ISLAND.b((WorldGenFeatureConfiguration) WorldGenFeatureConfiguration.e).a(worldserver, worldserver.getChunkProvider().getChunkGenerator(), new Random(this.exitPortal.asLong()), this.exitPortal);
|
||||
+ WorldGenerator.END_ISLAND.b(WorldGenFeatureConfiguration.e).a(worldserver, worldserver.getChunkProvider().getChunkGenerator(), new Random(this.exitPortal.asLong()), this.exitPortal); // CraftBukkit - decompile error
|
||||
} else {
|
||||
TileEntityEndGateway.LOGGER.debug("Found block at {}", this.exitPortal);
|
||||
}
|
||||
@@ -223,7 +249,7 @@
|
||||
}
|
||||
|
||||
private void a(WorldServer worldserver, BlockPosition blockposition) {
|
||||
- WorldGenerator.END_GATEWAY.b((WorldGenFeatureConfiguration) WorldGenEndGatewayConfiguration.a(this.getPosition(), false)).a(worldserver, worldserver.getChunkProvider().getChunkGenerator(), new Random(), blockposition);
|
||||
+ WorldGenerator.END_GATEWAY.b(WorldGenEndGatewayConfiguration.a(this.getPosition(), false)).a(worldserver, worldserver.getChunkProvider().getChunkGenerator(), new Random(), blockposition); // CraftBukkit - decompile error
|
||||
}
|
||||
|
||||
public void a(BlockPosition blockposition, boolean flag) {
|
||||
|
||||
Reference in New Issue
Block a user