Skip to content

Commit

Permalink
MultiFluidHatch: Read Working Enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ALongStringOfNumbers committed Dec 28, 2023
1 parent 726264e commit e897d20
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,14 @@ public void receiveInitialSyncData(PacketBuffer buf) {
this.workingEnabled = buf.readBoolean();
}

@Override
public void receiveCustomData(int dataId, PacketBuffer buf) {
super.receiveCustomData(dataId, buf);
if (dataId == GregtechDataCodes.WORKING_ENABLED) {
this.workingEnabled = buf.readBoolean();
}
}

@Override
public NBTTagCompound writeToNBT(NBTTagCompound data) {
super.writeToNBT(data);
Expand Down

0 comments on commit e897d20

Please sign in to comment.