3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-21 05:50:05 +01:00

Fixed logging in to the wrong game mode

Dieser Commit ist enthalten in:
Dinnerbone 2011-09-15 05:38:49 +01:00
Ursprung 706f0da595
Commit fce1a61254

Datei anzeigen

@ -95,9 +95,11 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
this.setPosition(position.x + 0.5, position.y, position.z + 0.5); this.setPosition(position.x + 0.5, position.y, position.z + 0.5);
} }
this.dimension = ((WorldServer) this.world).dimension; this.dimension = ((WorldServer) this.world).dimension;
// CraftBukkit end int oldMode = itemInWorldManager.a();
this.itemInWorldManager = new ItemInWorldManager((WorldServer) world); this.itemInWorldManager = new ItemInWorldManager((WorldServer) world);
this.itemInWorldManager.player = this; this.itemInWorldManager.player = this;
this.itemInWorldManager.a(oldMode);
// CraftBukkit end
} }
public void syncInventory() { public void syncInventory() {