summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-02-07 00:03:34 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-02-07 01:51:06 +0000
commit3f8d9c0e1f58bffbab4b72d4649657ce45a2bf6b (patch)
tree72c7f7a5e1d79fecdc8e416b5379c5956756f4d0
parente9b1607fdcee363e45be8f9b333d6de3fc3e5451 (diff)
downloadcraftbukkit-3f8d9c0e1f58bffbab4b72d4649657ce45a2bf6b.tar
craftbukkit-3f8d9c0e1f58bffbab4b72d4649657ce45a2bf6b.tar.gz
craftbukkit-3f8d9c0e1f58bffbab4b72d4649657ce45a2bf6b.tar.lz
craftbukkit-3f8d9c0e1f58bffbab4b72d4649657ce45a2bf6b.tar.xz
craftbukkit-3f8d9c0e1f58bffbab4b72d4649657ce45a2bf6b.zip
Fixed inventory transition
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
index 920244d2..3a929ee0 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
@@ -133,13 +133,16 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
newEntity.a = entity.a;
newEntity.health = entity.health;
newEntity.fireTicks = entity.fireTicks;
+ newEntity.inventory = entity.inventory;
+ newEntity.inventory.e = newEntity;
+ newEntity.activeContainer = entity.activeContainer;
+ newEntity.defaultContainer = entity.defaultContainer;
newWorld.A.d((int) location.getBlockX() >> 4, (int) location.getBlockZ() >> 4);
newEntity.a.a(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
newWorld.manager.a(newEntity);
newWorld.a(newEntity);
manager.b.add(newEntity);
- newEntity.l();
entity.a.e = newEntity;
entity = newEntity;