From fce1a612545af95f24644c8b4430f87ced1f98da Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Thu, 15 Sep 2011 05:38:49 +0100 Subject: [PATCH] Fixed logging in to the wrong game mode --- src/main/java/net/minecraft/server/EntityPlayer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java index c227c6b127..53ac7b1ee7 100644 --- a/src/main/java/net/minecraft/server/EntityPlayer.java +++ b/src/main/java/net/minecraft/server/EntityPlayer.java @@ -95,9 +95,11 @@ public class EntityPlayer extends EntityHuman implements ICrafting { this.setPosition(position.x + 0.5, position.y, position.z + 0.5); } this.dimension = ((WorldServer) this.world).dimension; - // CraftBukkit end + int oldMode = itemInWorldManager.a(); this.itemInWorldManager = new ItemInWorldManager((WorldServer) world); this.itemInWorldManager.player = this; + this.itemInWorldManager.a(oldMode); + // CraftBukkit end } public void syncInventory() {