network update flag

This commit is contained in:
GlodBlock committed 2023-01-31 10:49:19 +08:00
1 parent a22814940b
commit 2eb1854eda
1 file changed
+3 -1
@@ -111,14 +111,16 @@ public abstract class FCPartMonitor extends AbstractPartDisplay implements IPart
boolean needRedraw = super.readFromStream(data);
final boolean isLocked = data.readBoolean();
needRedraw = this.isLocked != isLocked;
needRedraw |= this.isLocked != isLocked;
this.isLocked = isLocked;
final boolean val = data.readBoolean();
if (val) {
needRedraw |= this.configuredFluid == null;
this.configuredFluid = AEFluidStack.loadFluidStackFromPacket(data);
} else {
needRedraw |= this.configuredFluid != null;
this.configuredFluid = null;
}