diff options
author | EvilSeph <evilseph@gmail.com> | 2012-02-08 18:30:59 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-02-08 18:30:59 -0500 |
commit | 879a87b1e0b7b68a932ba755eba769ff7aa73843 (patch) | |
tree | 4817622d3b25ce77ceaa73812efccc751dd02d70 /src/main/java/net/minecraft/server/BlockPumpkin.java | |
parent | 6d674569704a42b10d098513695dc82877cf6bc6 (diff) | |
download | craftbukkit-879a87b1e0b7b68a932ba755eba769ff7aa73843.tar craftbukkit-879a87b1e0b7b68a932ba755eba769ff7aa73843.tar.gz craftbukkit-879a87b1e0b7b68a932ba755eba769ff7aa73843.tar.lz craftbukkit-879a87b1e0b7b68a932ba755eba769ff7aa73843.tar.xz craftbukkit-879a87b1e0b7b68a932ba755eba769ff7aa73843.zip |
Fixed Pumpkins being reported as AIR in BlockPlace event when building snowmen. Fixes BUKKIT-697
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockPumpkin.java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockPumpkin.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/BlockPumpkin.java b/src/main/java/net/minecraft/server/BlockPumpkin.java index 2ee85357..a702c5e4 100644 --- a/src/main/java/net/minecraft/server/BlockPumpkin.java +++ b/src/main/java/net/minecraft/server/BlockPumpkin.java @@ -35,6 +35,7 @@ public class BlockPumpkin extends Block { public void onPlace(World world, int i, int j, int k) { super.onPlace(world, i, j, k); + if (world.suppressPhysics) return; // CraftBukkit if (world.getTypeId(i, j - 1, k) == Block.SNOW_BLOCK.id && world.getTypeId(i, j - 2, k) == Block.SNOW_BLOCK.id) { if (!world.isStatic && world.getServer().getServer().spawnAnimals) { // CraftBukkit - make snowmen obey spawning rules world.setTypeId(i, j, k, 0); |