summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-02-24 15:46:26 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-02-24 15:46:26 +0000
commit13f55ce0c8b5e7ac86c6f0ad50d7cb1f5b796976 (patch)
tree1ea70bc86ef2c92d878c0f09fbd68fa53ad45449 /src/main/java/net/minecraft/server
parentc97fa40d2b8cbd74857c7dd596106771d3156f87 (diff)
downloadcraftbukkit-13f55ce0c8b5e7ac86c6f0ad50d7cb1f5b796976.tar
craftbukkit-13f55ce0c8b5e7ac86c6f0ad50d7cb1f5b796976.tar.gz
craftbukkit-13f55ce0c8b5e7ac86c6f0ad50d7cb1f5b796976.tar.lz
craftbukkit-13f55ce0c8b5e7ac86c6f0ad50d7cb1f5b796976.tar.xz
craftbukkit-13f55ce0c8b5e7ac86c6f0ad50d7cb1f5b796976.zip
Fixed logging back in on non-default worlds (Yes really)
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r--src/main/java/net/minecraft/server/Entity.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
index 5f73ab46..4e228e82 100644
--- a/src/main/java/net/minecraft/server/Entity.java
+++ b/src/main/java/net/minecraft/server/Entity.java
@@ -849,8 +849,13 @@ public abstract class Entity {
String worldName = nbttagcompound.i("World");
for (WorldServer world: ((WorldServer) this.world).getServer().getServer().worlds) {
- if (world.q.j.equals(worldName)) {
+ if ((world.q.j.equals(worldName)) && (world != this.world)) {
this.world = world;
+ if (this instanceof EntityHuman) {
+ EntityPlayer player = (EntityPlayer)this;
+ player.c = new ItemInWorldManager(world);
+ player.c.a = player;
+ }
break;
}
}