|
16 | 16 | import appeng.api.storage.data.IAEItemStack; |
17 | 17 | import appeng.fluids.util.AEFluidStack; |
18 | 18 | import appeng.me.GridAccessException; |
19 | | -import appeng.util.Platform; |
20 | 19 | import appeng.util.item.AEItemStack; |
21 | 20 | import com.circulation.random_complement.common.interfaces.AEIgnoredInputMachine; |
22 | 21 | import com.glodblock.github.common.item.fake.FakeFluids; |
@@ -135,7 +134,7 @@ public IAEItemStack injectCraftedItems(ICraftingLink link, IAEItemStack stack, A |
135 | 134 | if (this.aeGrid().isPresent()) { |
136 | 135 | var grid = this.aeGrid().get(); |
137 | 136 | IEnergyGrid energyGrid = grid.getCache(IEnergyGrid.class); |
138 | | - var gridCache = ((IStorageGrid) grid.getCache(IStorageGrid.class)); |
| 137 | + IStorageGrid gridCache = grid.getCache(IStorageGrid.class); |
139 | 138 | IMEMonitor<IAEItemStack> storageGrid = gridCache.getInventory(AEApi.instance().storage().getStorageChannel(IItemStorageChannel.class)); |
140 | 139 | if (Loader.isModLoaded("ae2fc")) { |
141 | 140 | return ae2fc$work(grid, mode, gridCache, stack); |
@@ -176,7 +175,7 @@ public IAEItemStack injectCraftedItems(ICraftingLink link, IAEItemStack stack, A |
176 | 175 | } else { |
177 | 176 | IEnergyGrid energyGrid = grid.getCache(IEnergyGrid.class); |
178 | 177 | IMEMonitor<IAEItemStack> storageGrid = gridCache.getInventory(AEApi.instance().storage().getStorageChannel(IItemStorageChannel.class)); |
179 | | - return Platform.poweredInsert(energyGrid, storageGrid, stack, this.actionSource, Actionable.MODULATE); |
| 178 | + return storageGrid.injectItems(stack, mode, this.actionSource); |
180 | 179 | } |
181 | 180 | } |
182 | 181 |
|
|
0 commit comments