|
28 | 28 | import appeng.api.storage.*;
|
29 | 29 | import appeng.api.storage.data.IAEItemStack;
|
30 | 30 | import appeng.api.storage.data.IItemList;
|
| 31 | +import appeng.util.IterationCounter; |
31 | 32 | import appeng.util.Platform;
|
32 | 33 | import cofh.api.energy.IEnergyContainerItem;
|
33 | 34 | import cpw.mods.fml.common.Optional;
|
@@ -192,7 +193,7 @@ public String getItemStackDisplayName(ItemStack stack) {
|
192 | 193 | try {
|
193 | 194 | IItemList list = AEApi.instance().registries().cell()
|
194 | 195 | .getCellInventory(stack, null, StorageChannel.ITEMS)
|
195 |
| - .getAvailableItems(AEApi.instance().storage().createItemList()); |
| 196 | + .getAvailableItems(AEApi.instance().storage().createItemList(), IterationCounter.fetchNewId()); |
196 | 197 | if (list.isEmpty()) return super.getItemStackDisplayName(stack) + " - "
|
197 | 198 | + StatCollector.translateToLocal("extracells.tooltip.empty1");
|
198 | 199 | IAEItemStack s = (IAEItemStack) list.getFirstItem();
|
@@ -316,7 +317,7 @@ public boolean onItemUse(ItemStack itemstack, EntityPlayer player, World world,
|
316 | 317 | ForgeDirection face = ForgeDirection.getOrientation(side);
|
317 | 318 | IItemList list = AEApi.instance().registries().cell()
|
318 | 319 | .getCellInventory(itemstack, null, StorageChannel.ITEMS)
|
319 |
| - .getAvailableItems(AEApi.instance().storage().createItemList()); |
| 320 | + .getAvailableItems(AEApi.instance().storage().createItemList(), IterationCounter.fetchNewId()); |
320 | 321 | if (list.isEmpty()) return false;
|
321 | 322 | IAEItemStack storageStack = (IAEItemStack) list.getFirstItem();
|
322 | 323 | if (world.getBlock(x + face.offsetX, y + face.offsetY, z + face.offsetZ) == Blocks.air
|
|
0 commit comments