diff --git a/src/main/java/vazkii/botania/common/block/tile/corporea/TileCorporeaFunnel.java b/src/main/java/vazkii/botania/common/block/tile/corporea/TileCorporeaFunnel.java index a1bf3ed89..0385b9e55 100644 --- a/src/main/java/vazkii/botania/common/block/tile/corporea/TileCorporeaFunnel.java +++ b/src/main/java/vazkii/botania/common/block/tile/corporea/TileCorporeaFunnel.java @@ -43,7 +43,7 @@ public class TileCorporeaFunnel extends TileCorporeaBase { spark.onItemsRequested(stacks); for(ItemStack reqStack : stacks) if(stack != null) { - if(inv != null && reqStack.stackSize == InventoryHelper.testInventoryInsertion(inv, stack, ForgeDirection.UP)) + if(inv != null && reqStack.stackSize == InventoryHelper.testInventoryInsertion(inv, reqStack, ForgeDirection.UP)) InventoryHelper.insertItemIntoInventory(inv, reqStack); else { EntityItem item = new EntityItem(worldObj, xCoord + 0.5, yCoord + 1.5, zCoord + 0.5, reqStack); @@ -61,13 +61,19 @@ public class TileCorporeaFunnel extends TileCorporeaBase { final int[] orientationToDir = new int[] { 3, 4, 2, 5 }; + final int[] rotationToStackSize = new int[] { + 1, 16, 32, 64 + }; for(ForgeDirection dir : LibMisc.CARDINAL_DIRECTIONS) { List frames = worldObj.getEntitiesWithinAABB(EntityItemFrame.class, AxisAlignedBB.getBoundingBox(xCoord + dir.offsetX, yCoord + dir.offsetY, zCoord + dir.offsetZ, xCoord + dir.offsetX + 1, yCoord + dir.offsetY + 1, zCoord + dir.offsetZ + 1)); for(EntityItemFrame frame : frames) { int orientation = frame.hangingDirection; - if(orientationToDir[orientation] == dir.ordinal()) - filter.add(frame.getDisplayedItem()); + if(orientationToDir[orientation] == dir.ordinal()) { + ItemStack copy = frame.getDisplayedItem().copy(); + copy.stackSize = rotationToStackSize[frame.getRotation()]; + filter.add(copy); + } } } diff --git a/src/main/resources/assets/botania/lang/en_US.lang b/src/main/resources/assets/botania/lang/en_US.lang index 1795e7df8..476b084cc 100644 --- a/src/main/resources/assets/botania/lang/en_US.lang +++ b/src/main/resources/assets/botania/lang/en_US.lang @@ -2339,7 +2339,7 @@ botania.page.corporeaIndex6=A certain magical one at that # -- CORPOREA FUNNEL botania.entry.corporeaFunnel=Corporea Funnel botania.page.corporeaFunnel0=A simpler block that utilizes the prospects of the &4Corporea Network&0 is the &1Corporea Funnel&0, when given access to a network through a &1Corporea Spark&0 on top, it'll pull a single item from the network when given a redstone signal.
This item is put into an inventory 1 or 2 blocks below it, or case one doesn't exist or is full, tossed into the world right above the funnel. -botania.page.corporeaFunnel1=The &1Corporea Funnel&0 may only pull items that match its filter, similarly to a &1Hopperhock&0, the filter is designated by items contained on &1Item Frames&0 placed on it. The item pulled is one of the various items in the frames at random. +botania.page.corporeaFunnel1=The &1Corporea Funnel&0 may only pull items that match its filter, similarly to a &1Hopperhock&0, the filter is designated by items contained on &1Item Frames&0 placed on it. The item pulled is one of the various items in the frames at random.
Rotating the item changes how many will be requested at once, starting at 1, rotating once, twice and three times will pull 16, 32 and 64, respectively. botania.page.corporeaFunnel2=Energistically applied # -- CORPOREA INTERCEPTOR