mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Probably definitely fixed mob leaking
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
f4f4b368db
commit
138429d8b8
1 changed files with 2 additions and 1 deletions
|
@ -118,13 +118,14 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||
if (worldChange) {
|
||||
// Unload player from current chunks
|
||||
server.getServer().f.d.b(entity);
|
||||
|
||||
entity.c = new ItemInWorldManager(((CraftWorld)location.getWorld()).getHandle());
|
||||
}
|
||||
entity.world = ((CraftWorld)location.getWorld()).getHandle();
|
||||
entity.b(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
|
||||
if (worldChange) {
|
||||
// Forceload the chunks around player
|
||||
server.getServer().f.d.a(entity);
|
||||
entity.c = new ItemInWorldManager(((CraftWorld)location.getWorld()).getHandle());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue