summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-09-15 05:38:49 +0100
committerDinnerbone <dinnerbone@dinnerbone.com>2011-09-15 05:38:49 +0100
commitfce1a612545af95f24644c8b4430f87ced1f98da (patch)
treeecd98e1ed9013412d5bec1accc7e81958625ae51 /src
parent706f0da595b38a7fea0b043c1adff3147e066f5b (diff)
downloadcraftbukkit-fce1a612545af95f24644c8b4430f87ced1f98da.tar
craftbukkit-fce1a612545af95f24644c8b4430f87ced1f98da.tar.gz
craftbukkit-fce1a612545af95f24644c8b4430f87ced1f98da.tar.lz
craftbukkit-fce1a612545af95f24644c8b4430f87ced1f98da.tar.xz
craftbukkit-fce1a612545af95f24644c8b4430f87ced1f98da.zip
Fixed logging in to the wrong game mode
Diffstat (limited to 'src')
-rw-r--r--src/main/java/net/minecraft/server/EntityPlayer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java
index c227c6b1..53ac7b1e 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() {