Fixed crash caused by missing IInventory cast to duality.getStorage() call in onPartActivate(...)

This commit is contained in:
Sanjay S. committed 2025-06-20 10:42:08 -04:00
1 parent c516293195
commit 061a63bef5
1 file changed
+2 -2
@@ -251,8 +251,8 @@ public class PartFluidP2PInterface extends PartP2PTunnelStatic<PartFluidP2PInter
for (int i = 0; i < upgrades.getSizeInventory(); ++i) {
newUpgrade.setInventorySlotContents(i, upgrades.getStackInSlot(i));
}
IInventory storage = (AppEngInternalInventory) duality.getStorage();
IInventory newStorage = (AppEngInternalInventory) newDuality.getStorage();
IInventory storage = (IInventory) duality.getStorage();
IInventory newStorage = (IInventory) newDuality.getStorage();
for (int i = 0; i < storage.getSizeInventory(); ++i) {
newStorage.setInventorySlotContents(i, storage.getStackInSlot(i));
}