Skip to content

Commit

Permalink
Sync teleport staff config
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Cysteine committed Feb 27, 2023
1 parent 1728809 commit 96f2e65
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/crazypants/enderio/config/PacketConfigSync.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public void toBytes(ByteBuf buf) {
buf.writeInt(Config.travelStaffMaxDistance);
buf.writeInt(Config.travelStaffMaxBlinkDistance);
buf.writeFloat(Config.travelStaffPowerPerBlockRF);
buf.writeInt(Config.teleportStaffMaxDistance);
buf.writeInt(Config.teleportStaffMaxBlinkDistance);
buf.writeInt(Config.teleportStaffFailedBlinkDistance);
buf.writeBoolean(Config.telepadLockCoords);
buf.writeBoolean(Config.telepadLockDimension);
}
Expand All @@ -38,6 +41,9 @@ public void fromBytes(ByteBuf data) {
Config.travelStaffMaxDistance = data.readInt();
Config.travelStaffMaxBlinkDistance = data.readInt();
Config.travelStaffPowerPerBlockRF = data.readFloat();
Config.teleportStaffMaxDistance = data.readInt();
Config.teleportStaffMaxBlinkDistance = data.readInt();
Config.teleportStaffFailedBlinkDistance = data.readInt();
Config.telepadLockCoords = data.readBoolean();
Config.telepadLockDimension = data.readBoolean();
}
Expand Down

0 comments on commit 96f2e65

Please sign in to comment.