Brought PartFluidP2PInterface up to date with dependent PR

This commit is contained in:
Sanjay S. committed 2025-06-14 09:03:42 -04:00
1 parent a3d5a72737
commit bfb8d92afb
1 file changed
+20 -5
@@ -97,8 +97,11 @@ public class PartFluidP2PInterface extends PartP2PTunnelStatic<PartFluidP2PInter
@Override
public boolean updateStorage() {
boolean didSomething = false;
if (!isOutput()) {
super.updateStorage();
didSomething = super.updateStorage();
try {
for (PartFluidP2PInterface p2p : getOutputs()) p2p.duality.updateStorage();
} catch (GridAccessException e) {
@@ -106,10 +109,21 @@ public class PartFluidP2PInterface extends PartP2PTunnelStatic<PartFluidP2PInter
}
} else {
PartFluidP2PInterface p2p = getInput();
if ((p2p != null)) this.setStorage(p2p.duality.getStorage());
this.readConfig();
if (p2p != null && (!this.inputProxy)) {
this.setStorage(p2p.duality.getStorage());
this.inputProxy = true;
}
if ((p2p == null) && (this.inputProxy)) {
this.setStorage(new AppEngInternalInventory(this, NUMBER_OF_STORAGE_SLOTS));
this.setSlotInv(new WrapperInvSlot(this.getStorage()));
this.inputProxy = false;
}
if ((p2p == null) && (!this.inputProxy)) {
didSomething = super.updateStorage();
}
}
return true;
return didSomething;
}
@Override
@@ -127,8 +141,9 @@ public class PartFluidP2PInterface extends PartP2PTunnelStatic<PartFluidP2PInter
if (p2p != null) {
if (!p2p.duality.getConfig().isEmpty()) this.setHasConfig(p2p.duality.hasConfig());
this.notifyNeighbors();
}
this.notifyNeighbors();
}
}