From 41b2e89c70a73588a7bd8ba3173452e141673d84 Mon Sep 17 00:00:00 2001 From: feildmaster Date: Mon, 14 May 2012 20:50:16 -0500 Subject: [PATCH] Assert that the block is still present after placement. Fixes BUKKIT-1399 --- src/main/java/net/minecraft/server/ItemBlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/ItemBlock.java b/src/main/java/net/minecraft/server/ItemBlock.java index a1b686d19c..d27a788d26 100644 --- a/src/main/java/net/minecraft/server/ItemBlock.java +++ b/src/main/java/net/minecraft/server/ItemBlock.java @@ -79,7 +79,7 @@ public class ItemBlock extends Item { } if (world.setTypeIdAndData(i, j, k, id, data)) { - if (Block.byId[id] != null) { + if (world.getTypeId(i, j, k) == id && Block.byId[id] != null) { Block.byId[id].postPlace(world, i, j, k, l); Block.byId[id].postPlace(world, i, j, k, entityhuman); // CraftBukkit end