Added check for 7.0-7.1 Bin crashes

This commit is contained in:
Aidan C. Brady committed 2014-08-20 14:38:11 -04:00
1 parent 333fcd8ef1
commit a0622523d1
1 file changed
+1 -1
@@ -20,7 +20,7 @@ public class InventoryBin
public ItemStack getStack()
{
if(getItemCount() > 0)
if(getItemCount() > 0 && getItemType() != null)
{
ItemStack ret = getItemType().copy();
ret.stackSize = Math.min(getItemType().getMaxStackSize(), getItemCount());