diff options
author | EvilSeph <evilseph@gmail.com> | 2011-07-22 23:04:57 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2011-07-22 23:04:57 -0400 |
commit | f4a789b48a65171796d6a572253e02ff1538a591 (patch) | |
tree | 6c84d8b7c9dc74212e3d32151361e3da71e61f91 /src/main/java/net/minecraft/server | |
parent | a5f85b6f1af546c6253ffda782a1bbff0b528501 (diff) | |
download | craftbukkit-f4a789b48a65171796d6a572253e02ff1538a591.tar craftbukkit-f4a789b48a65171796d6a572253e02ff1538a591.tar.gz craftbukkit-f4a789b48a65171796d6a572253e02ff1538a591.tar.lz craftbukkit-f4a789b48a65171796d6a572253e02ff1538a591.tar.xz craftbukkit-f4a789b48a65171796d6a572253e02ff1538a591.zip |
Fixed NPE in BlockFurnace.
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockFurnace.java | 1 |
1 files changed, 1 insertions, 0 deletions
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); |