mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 20:46:59 +01:00
16 lines
860 B
Diff
16 lines
860 B
Diff
--- a/net/minecraft/server/PacketPlayOutWorldBorder.java
|
|
+++ b/net/minecraft/server/PacketPlayOutWorldBorder.java
|
|
@@ -18,8 +18,10 @@
|
|
|
|
public PacketPlayOutWorldBorder(WorldBorder worldborder, PacketPlayOutWorldBorder.EnumWorldBorderAction packetplayoutworldborder_enumworldborderaction) {
|
|
this.a = packetplayoutworldborder_enumworldborderaction;
|
|
- this.c = worldborder.getCenterX();
|
|
- this.d = worldborder.getCenterZ();
|
|
+ // CraftBukkit start - multiply out nether border
|
|
+ this.c = worldborder.getCenterX() * worldborder.world.getDimensionManager().getCoordinateScale();
|
|
+ this.d = worldborder.getCenterZ() * worldborder.world.getDimensionManager().getCoordinateScale();
|
|
+ // CraftBukkit end
|
|
this.f = worldborder.getSize();
|
|
this.e = worldborder.k();
|
|
this.g = worldborder.j();
|