From f4a789b48a65171796d6a572253e02ff1538a591 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Fri, 22 Jul 2011 23:04:57 -0400 Subject: Fixed NPE in BlockFurnace. --- src/main/java/net/minecraft/server/BlockFurnace.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java') diff --git a/src/main/java/net/minecraft/server/BlockFurnace.java b/src/main/java/net/minecraft/server/BlockFurnace.java index e5cae3d2..ab9f6bd9 100644 --- a/src/main/java/net/minecraft/server/BlockFurnace.java +++ b/src/main/java/net/minecraft/server/BlockFurnace.java @@ -112,6 +112,7 @@ public class BlockFurnace extends BlockContainer { if (!c) { TileEntityFurnace tileentityfurnace = (TileEntityFurnace) world.getTileEntity(i, j, k); + if (tileentityfurnace == null) return; // CraftBukkit for (int l = 0; l < tileentityfurnace.getSize(); ++l) { ItemStack itemstack = tileentityfurnace.getItem(l); -- cgit v1.2.3