possible fix for crash loading old crates
Detected when running a bukkit server so unsure if its a mcpc+ thing or an actual bug.
This commit is contained in:
parent
c07803de22
commit
68346fde01
1 changed files with 4 additions and 1 deletions
|
@ -242,7 +242,10 @@ public class TileEntityCrate extends TileEntityInv implements IPacketReceiver, I
|
|||
else
|
||||
{
|
||||
stack = ItemStack.loadItemStackFromNBT(nbt.getCompoundTag("stack"));
|
||||
stack.stackSize = count;
|
||||
if (stack != null)
|
||||
{
|
||||
stack.stackSize = count;
|
||||
}
|
||||
}
|
||||
|
||||
/* Only load sample stack if the read stack is valid */
|
||||
|
|
Loading…
Reference in a new issue