summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r--src/main/java/net/minecraft/server/ItemInWorldManager.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main/java/net/minecraft/server/ItemInWorldManager.java b/src/main/java/net/minecraft/server/ItemInWorldManager.java
index 322d58fd..0e64d039 100644
--- a/src/main/java/net/minecraft/server/ItemInWorldManager.java
+++ b/src/main/java/net/minecraft/server/ItemInWorldManager.java
@@ -205,12 +205,11 @@ public class ItemInWorldManager {
// Tell client the block is gone immediately then process events
if (world.getTileEntity(i, j, k) == null) {
- int id = block.getTypeId();
- byte data = block.getData();
+ Packet53BlockChange packet = new Packet53BlockChange(i, j, k, this.world);
- block.setTypeId(0, false);
- ((EntityPlayer) this.player).netServerHandler.sendPacket(new Packet53BlockChange(i, j, k, this.world));
- block.setTypeIdAndData(id, data, false);
+ packet.material = block.getTypeId();
+ packet.data = block.getData();
+ ((EntityPlayer) this.player).netServerHandler.sendPacket(packet);
}
BlockBreakEvent event = new BlockBreakEvent(block, (org.bukkit.entity.Player) this.player.getBukkitEntity());