mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 18:27:17 +01:00
Fixed logging in to the wrong game mode
This commit is contained in:
parent
706f0da595
commit
fce1a61254
1 changed files with 3 additions and 1 deletions
|
@ -95,9 +95,11 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
|||
this.setPosition(position.x + 0.5, position.y, position.z + 0.5);
|
||||
}
|
||||
this.dimension = ((WorldServer) this.world).dimension;
|
||||
// CraftBukkit end
|
||||
int oldMode = itemInWorldManager.a();
|
||||
this.itemInWorldManager = new ItemInWorldManager((WorldServer) world);
|
||||
this.itemInWorldManager.player = this;
|
||||
this.itemInWorldManager.a(oldMode);
|
||||
// CraftBukkit end
|
||||
}
|
||||
|
||||
public void syncInventory() {
|
||||
|
|
Loading…
Reference in a new issue