From a0c35937f944f3f28025716ae6357eddd4b52282 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 30 Jun 2020 10:03:46 +1000 Subject: [PATCH] SPIGOT-5895: PlayerChangedWorldEvent#getFrom is incorrect --- nms-patches/EntityPlayer.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms-patches/EntityPlayer.patch b/nms-patches/EntityPlayer.patch index 41f465a2f4..4c220e70b3 100644 --- a/nms-patches/EntityPlayer.patch +++ b/nms-patches/EntityPlayer.patch @@ -540,7 +540,7 @@ this.lastFoodSent = -1; + + // CraftBukkit start -+ PlayerChangedWorldEvent changeEvent = new PlayerChangedWorldEvent(this.getBukkitEntity(), worldserver.getWorld()); ++ PlayerChangedWorldEvent changeEvent = new PlayerChangedWorldEvent(this.getBukkitEntity(), worldserver1.getWorld()); + this.world.getServer().getPluginManager().callEvent(changeEvent); + // CraftBukkit end return this;