SPIGOT-5895: PlayerChangedWorldEvent#getFrom is incorrect

This commit is contained in:
md_5 2020-06-30 10:03:46 +10:00
parent 89c0a5c34d
commit a0c35937f9
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -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;