fixed support for multiworld beds

This commit is contained in:
Tahg
2011-06-09 09:44:25 -04:00
parent 4a0eb0a4a1
commit ca0711fdb3
2 changed files with 6 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ public abstract class EntityHuman extends EntityLiving {
// CraftBukkit start
public boolean sleeping;
public boolean fauxSleeping;
public String spawnWorld;
public String spawnWorld = "";
// CraftBukkit end
public ChunkCoordinates A;
public int sleepTicks; // CraftBukkit - private -> public
@@ -760,6 +760,7 @@ public abstract class EntityHuman extends EntityLiving {
public void a(ChunkCoordinates chunkcoordinates) {
if (chunkcoordinates != null) {
this.b = new ChunkCoordinates(chunkcoordinates);
this.spawnWorld = world.worldData.name;
} else {
this.b = null;
}