Fixed NPE in BlockFurnace.

This commit is contained in:
EvilSeph 2011-07-22 23:04:57 -04:00
parent a5f85b6f1a
commit f4a789b48a

View File

@ -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);