mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
SPIGOT-5895: PlayerChangedWorldEvent#getFrom is incorrect
By: md_5 <git@md-5.net>
This commit is contained in:
parent
aef11bebb7
commit
455c5d71c4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue