summaryrefslogtreecommitdiffstats
path: root/src/main/java/net
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2011-10-01 13:37:20 -0400
committerEvilSeph <evilseph@gmail.com>2011-10-01 13:37:20 -0400
commitd532136903ff68562800719ba0554c315edb08be (patch)
tree03ad794171ef976ac45b3fc767a156ec4f3ea87d /src/main/java/net
parent22baa13894264fad9584a10bcdf7427588c07989 (diff)
downloadcraftbukkit-d532136903ff68562800719ba0554c315edb08be.tar
craftbukkit-d532136903ff68562800719ba0554c315edb08be.tar.gz
craftbukkit-d532136903ff68562800719ba0554c315edb08be.tar.lz
craftbukkit-d532136903ff68562800719ba0554c315edb08be.tar.xz
craftbukkit-d532136903ff68562800719ba0554c315edb08be.zip
Fixed bed spawns for multiworld worlds. Thanks Meaglin!
Diffstat (limited to 'src/main/java/net')
-rw-r--r--src/main/java/net/minecraft/server/EntityHuman.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java
index 68217e7a..564fb288 100644
--- a/src/main/java/net/minecraft/server/EntityHuman.java
+++ b/src/main/java/net/minecraft/server/EntityHuman.java
@@ -500,6 +500,7 @@ public abstract class EntityHuman extends EntityLiving {
nbttagcompound.a("SpawnX", this.b.x);
nbttagcompound.a("SpawnY", this.b.y);
nbttagcompound.a("SpawnZ", this.b.z);
+ nbttagcompound.setString("SpawnWorld", spawnWorld); // CraftBukkit - fixes bed spawns for multiworld worlds
}
this.foodData.b(nbttagcompound);