mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Fixed NPE after traveling to another world
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
138429d8b8
commit
e304a85e74
1 changed files with 1 additions and 0 deletions
|
@ -120,6 +120,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||
server.getServer().f.d.b(entity);
|
||||
|
||||
entity.c = new ItemInWorldManager(((CraftWorld)location.getWorld()).getHandle());
|
||||
entity.c.a = entity;
|
||||
}
|
||||
entity.world = ((CraftWorld)location.getWorld()).getHandle();
|
||||
entity.b(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
|
||||
|
|
Loading…
Reference in a new issue