summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authorThinkofdeath <thinkofdeath@spigotmc.org>2014-12-06 22:26:49 +0000
committerThinkofdeath <thinkofdeath@spigotmc.org>2014-12-06 22:26:49 +0000
commitfbda3a7c991e50b65f6d5a8b923897d91adade8d (patch)
tree27702274fa3acfc857d007ab3866ec058a2f1f85 /nms-patches
parentc4129c259b5913333efed76975c345d2afff6acd (diff)
downloadcraftbukkit-fbda3a7c991e50b65f6d5a8b923897d91adade8d.tar
craftbukkit-fbda3a7c991e50b65f6d5a8b923897d91adade8d.tar.gz
craftbukkit-fbda3a7c991e50b65f6d5a8b923897d91adade8d.tar.lz
craftbukkit-fbda3a7c991e50b65f6d5a8b923897d91adade8d.tar.xz
craftbukkit-fbda3a7c991e50b65f6d5a8b923897d91adade8d.zip
Fix worldborders showing from the wrong world
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/PlayerList.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/nms-patches/PlayerList.patch b/nms-patches/PlayerList.patch
index 5a8d02a1..162f7417 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")));