diff options
author | feildmaster <admin@feildmaster.com> | 2012-04-02 14:06:33 -0500 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-04-02 16:32:52 -0500 |
commit | 470d9f9e1d3cd1234d19607f1b68e4a918657533 (patch) | |
tree | 78c7a9a645ceed9c895092470d5a882a67c73091 /src | |
parent | 81102479a7a6edfb4f7137b9446ac9edb041b240 (diff) | |
download | craftbukkit-470d9f9e1d3cd1234d19607f1b68e4a918657533.tar craftbukkit-470d9f9e1d3cd1234d19607f1b68e4a918657533.tar.gz craftbukkit-470d9f9e1d3cd1234d19607f1b68e4a918657533.tar.lz craftbukkit-470d9f9e1d3cd1234d19607f1b68e4a918657533.tar.xz craftbukkit-470d9f9e1d3cd1234d19607f1b68e4a918657533.zip |
Tell clients to update if EntityPortalCreateEvent is canceled. Fixes BUKKIT-1426
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityEnderDragon.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityEnderDragon.java b/src/main/java/net/minecraft/server/EntityEnderDragon.java index 6f74bc56..198c108f 100644 --- a/src/main/java/net/minecraft/server/EntityEnderDragon.java +++ b/src/main/java/net/minecraft/server/EntityEnderDragon.java @@ -617,6 +617,16 @@ public class EntityEnderDragon extends EntityComplex { for (BlockState state : event.getBlocks()) { state.update(true); } + } else { + for (BlockState state : event.getBlocks()) { + Packet53BlockChange packet = new Packet53BlockChange(state.getX(), state.getY(), state.getZ(), this.world); + for (Iterator it = this.world.players.iterator(); it.hasNext();) { + EntityHuman entity = (EntityHuman) it.next(); + if (entity instanceof EntityPlayer) { + ((EntityPlayer) entity).netServerHandler.sendPacket(packet); + } + } + } } // CraftBukkit end |