From e304a85e74c376279c8f138200ac43c787641e9e Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 5 Feb 2011 23:41:57 +0000 Subject: [PATCH] Fixed NPE after traveling to another world By: Dinnerbone --- .../src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 02beea654c..3b835a451a 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -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());