From fbda3a7c991e50b65f6d5a8b923897d91adade8d Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Sat, 6 Dec 2014 22:26:49 +0000 Subject: [PATCH] Fix worldborders showing from the wrong world --- nms-patches/PlayerList.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nms-patches/PlayerList.patch b/nms-patches/PlayerList.patch index 5a8d02a1f3..162f741761 100644 --- a/nms-patches/PlayerList.patch +++ b/nms-patches/PlayerList.patch @@ -1,5 +1,5 @@ ---- ../work/decompile-8eb82bde//net/minecraft/server/PlayerList.java 2014-12-06 20:53:31.255313492 +0000 -+++ src/main/java/net/minecraft/server/PlayerList.java 2014-12-06 20:41:55.959328924 +0000 +--- ../work/decompile-8eb82bde//net/minecraft/server/PlayerList.java 2014-12-06 22:26:41.687189417 +0000 ++++ src/main/java/net/minecraft/server/PlayerList.java 2014-12-06 22:25:44.071190696 +0000 @@ -18,6 +18,25 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -743,7 +743,7 @@ public void b(EntityPlayer entityplayer, WorldServer worldserver) { - WorldBorder worldborder = this.server.worldServer[0].af(); -+ WorldBorder worldborder = this.server.worlds.get(0).af(); // CraftBukkit ++ WorldBorder worldborder = entityplayer.world.af(); // CraftBukkit entityplayer.playerConnection.sendPacket(new PacketPlayOutWorldBorder(worldborder, EnumWorldBorderAction.INITIALIZE)); entityplayer.playerConnection.sendPacket(new PacketPlayOutUpdateTime(worldserver.getTime(), worldserver.getDayTime(), worldserver.getGameRules().getBoolean("doDaylightCycle")));