From 3f8d9c0e1f58bffbab4b72d4649657ce45a2bf6b Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Mon, 7 Feb 2011 00:03:34 +0000 Subject: [PATCH] Fixed inventory transition --- src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 920244d239..3a929ee0f9 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;