Fixed the LivingArmourHandler for defense so it no longer ate armour.
This commit is contained in:
parent
b70c71f7be
commit
e888907350
6 changed files with 79 additions and 10 deletions
|
@ -50,10 +50,16 @@ public class TileInputRoutingNode extends TileFilteredRoutingNode implements IIn
|
|||
continue;
|
||||
}
|
||||
|
||||
filteredList.add(GhostItemHelper.getStackFromGhost(stack));
|
||||
ItemStack ghostResult = GhostItemHelper.getStackFromGhost(stack);
|
||||
// if (ghostResult.stackSize == 0)
|
||||
// {
|
||||
// ghostResult.stackSize = Int.MaxValue();
|
||||
// }
|
||||
|
||||
filteredList.add(ghostResult);
|
||||
}
|
||||
|
||||
testFilter.initializeFilter(filteredList, (IInventory) tile, side, false);
|
||||
testFilter.initializeFilter(filteredList, (IInventory) tile, side.getOpposite(), false);
|
||||
|
||||
return testFilter;
|
||||
}
|
||||
|
|
|
@ -52,7 +52,6 @@ public class TileMasterRoutingNode extends TileEntity implements IMasterRoutingN
|
|||
{
|
||||
if (!outputNode.isInventoryConnectedToSide(facing) || !outputNode.isOutput(facing))
|
||||
{
|
||||
System.out.println("Hello");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue