mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-02 13:41:26 +01:00
Fixed logging back in on non-default worlds (Yes really)
This commit is contained in:
parent
c97fa40d2b
commit
13f55ce0c8
@ -849,8 +849,13 @@ public abstract class Entity {
|
|||||||
String worldName = nbttagcompound.i("World");
|
String worldName = nbttagcompound.i("World");
|
||||||
|
|
||||||
for (WorldServer world: ((WorldServer) this.world).getServer().getServer().worlds) {
|
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;
|
this.world = world;
|
||||||
|
if (this instanceof EntityHuman) {
|
||||||
|
EntityPlayer player = (EntityPlayer)this;
|
||||||
|
player.c = new ItemInWorldManager(world);
|
||||||
|
player.c.a = player;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user