mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 15:23:16 +00:00
Added check for 7.0-7.1 Bin crashes
This commit is contained in:
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());
|
||||
|
||||
Reference in new issue
Block a user