geforkt von Mirrors/Paper
Probably definitely fixed mob leaking
By: Dinnerbone <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Ursprung
f4f4b368db
Commit
138429d8b8
@ -118,13 +118,14 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
if (worldChange) {
|
if (worldChange) {
|
||||||
// Unload player from current chunks
|
// Unload player from current chunks
|
||||||
server.getServer().f.d.b(entity);
|
server.getServer().f.d.b(entity);
|
||||||
|
|
||||||
|
entity.c = new ItemInWorldManager(((CraftWorld)location.getWorld()).getHandle());
|
||||||
}
|
}
|
||||||
entity.world = ((CraftWorld)location.getWorld()).getHandle();
|
entity.world = ((CraftWorld)location.getWorld()).getHandle();
|
||||||
entity.b(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
|
entity.b(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
|
||||||
if (worldChange) {
|
if (worldChange) {
|
||||||
// Forceload the chunks around player
|
// Forceload the chunks around player
|
||||||
server.getServer().f.d.a(entity);
|
server.getServer().f.d.a(entity);
|
||||||
entity.c = new ItemInWorldManager(((CraftWorld)location.getWorld()).getHandle());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren