summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-02-05 23:41:57 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-02-07 01:51:05 +0000
commit4c9f1a2275c61701727cd0a4c32192fe527822b4 (patch)
treeb4382aa311a9ca8d01e1009846fbd675ca7e0133 /src/main/java/org
parent7e81245cafab53a4627743f0f66494af468d4660 (diff)
downloadcraftbukkit-4c9f1a2275c61701727cd0a4c32192fe527822b4.tar
craftbukkit-4c9f1a2275c61701727cd0a4c32192fe527822b4.tar.gz
craftbukkit-4c9f1a2275c61701727cd0a4c32192fe527822b4.tar.lz
craftbukkit-4c9f1a2275c61701727cd0a4c32192fe527822b4.tar.xz
craftbukkit-4c9f1a2275c61701727cd0a4c32192fe527822b4.zip
Fixed NPE after traveling to another world
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
index 02beea65..3b835a45 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+++ b/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());