Merge pull request #614 from Camotoy/worldborderfix

This commit is contained in:
Steven Smith 2021-01-13 20:32:01 -08:00 committed by GitHub
commit 62721cfe0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {
@ -126,8 +126,8 @@ public class ServerWorldBorderPacket implements Packet {
out.writeDouble(this.newSize);
out.writeVarLong(this.lerpTime);
out.writeVarInt(this.newAbsoluteMaxSize);
out.writeVarInt(this.warningTime);
out.writeVarInt(this.warningBlocks);
out.writeVarInt(this.warningTime);
} else if(this.action == WorldBorderAction.SET_WARNING_TIME) {
out.writeVarInt(this.warningTime);
} else if(this.action == WorldBorderAction.SET_WARNING_BLOCKS) {