Fixed the LivingArmourHandler for defense so it no longer ate armour.

This commit is contained in:
WayofTime 2016-01-15 06:24:10 -05:00
parent b70c71f7be
commit e888907350
6 changed files with 79 additions and 10 deletions

View file

@ -3,6 +3,7 @@ package WayofTime.bloodmagic.tile.routing;
import java.util.LinkedList;
import java.util.List;
import scala.Int;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
@ -50,10 +51,16 @@ public class TileOutputRoutingNode extends TileFilteredRoutingNode implements IO
continue;
}
filteredList.add(GhostItemHelper.getStackFromGhost(stack));
ItemStack ghostStack = GhostItemHelper.getStackFromGhost(stack);
if (ghostStack.stackSize == 0)
{
ghostStack.stackSize = Int.MaxValue();
}
filteredList.add(ghostStack);
}
testFilter.initializeFilter(filteredList, (IInventory) tile, side, true);
testFilter.initializeFilter(filteredList, (IInventory) tile, side.getOpposite(), true);
return testFilter;
}