Hopefully fix a small DM issue

This commit is contained in:
aidancbrady 2015-06-06 20:47:12 -04:00
parent 03727deda8
commit e12dd2597c

View file

@ -489,13 +489,18 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
stacks:
for(ItemStack stack : stacks)
{
if(stack == null)
if(stack == null || stack.getItem() == null)
{
continue;
}
for(int i = 0; i < 27; i++)
{
if(testInv[i] != null && testInv[i].getItem() == null)
{
testInv[i] = null;
}
if(testInv[i] == null)
{
testInv[i] = stack;