From bf0a6be8fe6f5c5194c6630da3416f3fd51de1b6 Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+Camotoy@users.noreply.github.com> Date: Wed, 13 Jan 2021 19:58:40 -0500 Subject: [PATCH] Fix ServerWorldBorderPacket initialization Seems like these two were flipped around. --- .../packet/ingame/server/world/ServerWorldBorderPacket.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/github/steveice10/mc/protocol/packet/ingame/server/world/ServerWorldBorderPacket.java b/src/main/java/com/github/steveice10/mc/protocol/packet/ingame/server/world/ServerWorldBorderPacket.java index 7d934ad1..c1690cfa 100644 --- a/src/main/java/com/github/steveice10/mc/protocol/packet/ingame/server/world/ServerWorldBorderPacket.java +++ b/src/main/java/com/github/steveice10/mc/protocol/packet/ingame/server/world/ServerWorldBorderPacket.java @@ -98,8 +98,8 @@ public class ServerWorldBorderPacket implements Packet { this.newSize = in.readDouble(); this.lerpTime = in.readVarLong(); this.newAbsoluteMaxSize = in.readVarInt(); - this.warningTime = in.readVarInt(); this.warningBlocks = in.readVarInt(); + this.warningTime = in.readVarInt(); } else if(this.action == WorldBorderAction.SET_WARNING_TIME) { this.warningTime = in.readVarInt(); } else if(this.action == WorldBorderAction.SET_WARNING_BLOCKS) {