Tweak corporea funnel behavior to accomodate 1.8 item frame changes. Closes #81.

This commit is contained in:
Vincent Lee committed 2016-01-26 12:39:32 -06:00
1 parent ad8cf9de8a
commit 779cc7604c
2 files changed
+10 -14

No files matched your search

@@ -42,13 +42,10 @@ public class TileCorporeaFunnel extends TileCorporeaBase implements ICorporeaReq
}
public List<ItemStack> getFilter() {
List<ItemStack> filter = new ArrayList();
List<ItemStack> filter = new ArrayList<>();
final int[] orientationToDir = new int[] {
3, 4, 2, 5
};
final int[] rotationToStackSize = new int[] {
1, 16, 32, 64
1, 16, 24, 32, 40, 48, 56, 64
};
for(EnumFacing dir : LibMisc.CARDINAL_DIRECTIONS) {
@@ -95,15 +92,14 @@ public class TileCorporeaFunnel extends TileCorporeaBase implements ICorporeaReq
List<ItemStack> stacks = CorporeaHelper.requestItem(request, count, spark, true, true);
spark.onItemsRequested(stacks);
for(ItemStack reqStack : stacks)
if(request != null) {
if(inv != null && !(inv instanceof TileCorporeaFunnel) && reqStack.stackSize == InventoryHelper.testInventoryInsertion(inv, reqStack, EnumFacing.UP))
InventoryHelper.insertItemIntoInventory(inv, reqStack);
else {
EntityItem item = new EntityItem(worldObj, pos.getX() + 0.5, pos.getY() + 1.5, pos.getZ() + 0.5, reqStack);
worldObj.spawnEntityInWorld(item);
}
for(ItemStack reqStack : stacks) {
if(inv != null && !(inv instanceof TileCorporeaFunnel) && reqStack.stackSize == InventoryHelper.testInventoryInsertion(inv, reqStack, EnumFacing.UP))
InventoryHelper.insertItemIntoInventory(inv, reqStack);
else {
EntityItem item = new EntityItem(worldObj, pos.getX() + 0.5, pos.getY() + 1.5, pos.getZ() + 0.5, reqStack);
worldObj.spawnEntityInWorld(item);
}
}
}
}