mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-09-01 18:17:55 +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:
@@ -31,8 +31,8 @@ public class TerminalDimensionsClientMessage implements NetworkMessage
|
|||||||
this.computerTermHeight = ComputerCraft.computerTermHeight;
|
this.computerTermHeight = ComputerCraft.computerTermHeight;
|
||||||
this.pocketTermWidth = ComputerCraft.pocketTermWidth;
|
this.pocketTermWidth = ComputerCraft.pocketTermWidth;
|
||||||
this.pocketTermHeight = ComputerCraft.pocketTermHeight;
|
this.pocketTermHeight = ComputerCraft.pocketTermHeight;
|
||||||
this.monitorHeight = ComputerCraft.monitorHeight;
|
|
||||||
this.monitorWidth = ComputerCraft.monitorWidth;
|
this.monitorWidth = ComputerCraft.monitorWidth;
|
||||||
|
this.monitorHeight = ComputerCraft.monitorHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TerminalDimensionsClientMessage( @Nonnull FriendlyByteBuf buf )
|
public TerminalDimensionsClientMessage( @Nonnull FriendlyByteBuf buf )
|
||||||
@@ -41,8 +41,8 @@ public class TerminalDimensionsClientMessage implements NetworkMessage
|
|||||||
computerTermHeight = buf.readVarInt();
|
computerTermHeight = buf.readVarInt();
|
||||||
pocketTermWidth = buf.readVarInt();
|
pocketTermWidth = buf.readVarInt();
|
||||||
pocketTermHeight = buf.readVarInt();
|
pocketTermHeight = buf.readVarInt();
|
||||||
monitorHeight = buf.readVarInt();
|
|
||||||
monitorWidth = buf.readVarInt();
|
monitorWidth = buf.readVarInt();
|
||||||
|
monitorHeight = buf.readVarInt();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user