SPIGOT-5895: PlayerChangedWorldEvent#getFrom is incorrect

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2020-06-30 10:03:46 +10:00
parent aef11bebb7
commit 455c5d71c4

View file

@ -540,7 +540,7 @@
this.lastFoodSent = -1; this.lastFoodSent = -1;
+ +
+ // CraftBukkit start + // CraftBukkit start
+ PlayerChangedWorldEvent changeEvent = new PlayerChangedWorldEvent(this.getBukkitEntity(), worldserver.getWorld()); + PlayerChangedWorldEvent changeEvent = new PlayerChangedWorldEvent(this.getBukkitEntity(), worldserver1.getWorld());
+ this.world.getServer().getPluginManager().callEvent(changeEvent); + this.world.getServer().getPluginManager().callEvent(changeEvent);
+ // CraftBukkit end + // CraftBukkit end
return this; return this;