From 879a87b1e0b7b68a932ba755eba769ff7aa73843 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Wed, 8 Feb 2012 18:30:59 -0500 Subject: [PATCH] Fixed Pumpkins being reported as AIR in BlockPlace event when building snowmen. Fixes BUKKIT-697 --- src/main/java/net/minecraft/server/BlockPumpkin.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/minecraft/server/BlockPumpkin.java b/src/main/java/net/minecraft/server/BlockPumpkin.java index 2ee85357b2..a702c5e4e9 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);