mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-25 12:05:53 +01:00
SPIGOT-5895: PlayerChangedWorldEvent#getFrom is incorrect
This commit is contained in:
parent
89c0a5c34d
commit
a0c35937f9
@ -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 New Issue
Block a user