diff options
author | feildmaster <admin@feildmaster.com> | 2012-05-14 20:50:16 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-05-17 00:24:10 -0400 |
commit | 41b2e89c70a73588a7bd8ba3173452e141673d84 (patch) | |
tree | e67d183b5764e7c5190c0ddce683309aa3a56bec /src/main/java/net/minecraft/server/ItemBlock.java | |
parent | 1d361c2f487d1a9c446cef5957c9e3df8fe1568b (diff) | |
download | craftbukkit-41b2e89c70a73588a7bd8ba3173452e141673d84.tar craftbukkit-41b2e89c70a73588a7bd8ba3173452e141673d84.tar.gz craftbukkit-41b2e89c70a73588a7bd8ba3173452e141673d84.tar.lz craftbukkit-41b2e89c70a73588a7bd8ba3173452e141673d84.tar.xz craftbukkit-41b2e89c70a73588a7bd8ba3173452e141673d84.zip |
Assert that the block is still present after placement. Fixes BUKKIT-1399
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemBlock.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemBlock.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/ItemBlock.java b/src/main/java/net/minecraft/server/ItemBlock.java index a1b686d1..d27a788d 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 |