mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-11 15:57:55 +00:00
network update flag
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user