diff options
author | feildmaster <admin@feildmaster.com> | 2013-01-27 11:31:27 -0600 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2013-01-27 11:31:27 -0600 |
commit | f20d6e3595a5b75ca04fd7a70a7a8f1d87bc9203 (patch) | |
tree | 578f1a235afea72c25a8e361df8b451572c93773 | |
parent | 899b9c17cc469851cbc42c5a326869e97b492de4 (diff) | |
download | craftbukkit-f20d6e3595a5b75ca04fd7a70a7a8f1d87bc9203.tar craftbukkit-f20d6e3595a5b75ca04fd7a70a7a8f1d87bc9203.tar.gz craftbukkit-f20d6e3595a5b75ca04fd7a70a7a8f1d87bc9203.tar.lz craftbukkit-f20d6e3595a5b75ca04fd7a70a7a8f1d87bc9203.tar.xz craftbukkit-f20d6e3595a5b75ca04fd7a70a7a8f1d87bc9203.zip |
Ignore block functions for skulls on BlockPlace. Fixes BUKKIT-3495
Skulls don't normally get block data applied to them, so we shouldn't
apply it either.
-rw-r--r-- | src/main/java/net/minecraft/server/ItemBlock.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/ItemBlock.java b/src/main/java/net/minecraft/server/ItemBlock.java index b335b151..95974764 100644 --- a/src/main/java/net/minecraft/server/ItemBlock.java +++ b/src/main/java/net/minecraft/server/ItemBlock.java @@ -105,7 +105,8 @@ public class ItemBlock extends Item { world.update(x, y, z, newId); - if (block != null) { + // Skulls don't get block data applied to them + if (block != null && block != Block.SKULL) { block.postPlace(world, x, y, z, entityhuman); block.postPlace(world, x, y, z, newData); |