Skip to content

Commit

Permalink
Added check for 7.0-7.1 Bin crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
aidancbrady committed Aug 20, 2014
1 parent 333fcd8 commit a062252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mekanism/common/inventory/InventoryBin.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public InventoryBin(ItemStack stack)

public ItemStack getStack()
{
if(getItemCount() > 0)
if(getItemCount() > 0 && getItemType() != null)
{
ItemStack ret = getItemType().copy();
ret.stackSize = Math.min(getItemType().getMaxStackSize(), getItemCount());
Expand Down

0 comments on commit a062252

Please sign in to comment.