Skip to content

Commit e897d20

Browse files
MultiFluidHatch: Read Working Enabled
1 parent 726264e commit e897d20

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/gregtech/common/metatileentities/multi/multiblockpart/MetaTileEntityMultiFluidHatch.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,14 @@ public void receiveInitialSyncData(PacketBuffer buf) {
122122
this.workingEnabled = buf.readBoolean();
123123
}
124124

125+
@Override
126+
public void receiveCustomData(int dataId, PacketBuffer buf) {
127+
super.receiveCustomData(dataId, buf);
128+
if (dataId == GregtechDataCodes.WORKING_ENABLED) {
129+
this.workingEnabled = buf.readBoolean();
130+
}
131+
}
132+
125133
@Override
126134
public NBTTagCompound writeToNBT(NBTTagCompound data) {
127135
super.writeToNBT(data);

0 commit comments

Comments
 (0)