mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-10-25 20:22:20 +00:00
Fix dual interface returning internal fluids only once (#422)
This commit is contained in:
1 parent
9c50bb0d70
commit
36671559a8
1 file changed
+1
-6
@@ -75,7 +75,6 @@ public class DualityFluidInterface implements IGridTickable, IStorageMonitorable
|
||||
private final IAEFluidStack[] requireWork;
|
||||
private int isWorking = -1;
|
||||
private final Map<IAEStackType<?>, MEMonitorPassThrough<?>> monitorMap;
|
||||
private boolean resetConfigCache = true;
|
||||
|
||||
public DualityFluidInterface(final AENetworkProxy networkProxy, final IInterfaceHost ih) {
|
||||
this.gridProxy = networkProxy;
|
||||
@@ -223,10 +222,7 @@ public class DualityFluidInterface implements IGridTickable, IStorageMonitorable
|
||||
@SuppressWarnings("unchecked")
|
||||
public IMEMonitor<IAEFluidStack> getFluidInventory() {
|
||||
if (this.hasConfig) {
|
||||
if (this.resetConfigCache) {
|
||||
this.resetConfigCache = false;
|
||||
return new InterfaceInventory(this);
|
||||
}
|
||||
return new InterfaceInventory(this);
|
||||
}
|
||||
return (IMEMonitor<IAEFluidStack>) this.monitorMap.get(FLUID_STACK_TYPE);
|
||||
}
|
||||
@@ -264,7 +260,6 @@ public class DualityFluidInterface implements IGridTickable, IStorageMonitorable
|
||||
had = this.hasConfig;
|
||||
this.readConfig();
|
||||
if (had != this.hasConfig) {
|
||||
this.resetConfigCache = true;
|
||||
this.notifyNeighbors();
|
||||
}
|
||||
} else if (inventory == this.tanks) {
|
||||
|
||||
Reference in new issue
Block a user