mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 11:45:52 -07:00
fixed support for multiworld beds
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user