13
0
geforkt von Mirrors/Paper

Tell clients to update if EntityPortalCreateEvent is canceled. Fixes BUKKIT-1426

Dieser Commit ist enthalten in:
feildmaster 2012-04-02 14:06:33 -05:00
Ursprung 81102479a7
Commit 470d9f9e1d

Datei anzeigen

@ -617,6 +617,16 @@ public class EntityEnderDragon extends EntityComplex {
for (BlockState state : event.getBlocks()) { for (BlockState state : event.getBlocks()) {
state.update(true); 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 // CraftBukkit end