1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-28 08:12:18 +00:00

Fix monitor max dimensions syncing.

- We were transposing width and height values on client.
- Made width/height order consistent in constructor too just because.
This commit is contained in:
Toad-Dev 2022-01-29 13:02:15 -08:00
parent 8c930d20b5
commit 87bb49337f

View File

@ -31,8 +31,8 @@ public class TerminalDimensionsClientMessage implements NetworkMessage
this.computerTermHeight = ComputerCraft.computerTermHeight;
this.pocketTermWidth = ComputerCraft.pocketTermWidth;
this.pocketTermHeight = ComputerCraft.pocketTermHeight;
this.monitorHeight = ComputerCraft.monitorHeight;
this.monitorWidth = ComputerCraft.monitorWidth;
this.monitorHeight = ComputerCraft.monitorHeight;
}
public TerminalDimensionsClientMessage( @Nonnull FriendlyByteBuf buf )
@ -41,8 +41,8 @@ public class TerminalDimensionsClientMessage implements NetworkMessage
computerTermHeight = buf.readVarInt();
pocketTermWidth = buf.readVarInt();
pocketTermHeight = buf.readVarInt();
monitorHeight = buf.readVarInt();
monitorWidth = buf.readVarInt();
monitorHeight = buf.readVarInt();
}
@Override