3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 21:10:17 +01:00

Fixed inventory transition

Dieser Commit ist enthalten in:
Dinnerbone 2011-02-07 00:03:34 +00:00
Ursprung e9b1607fdc
Commit 3f8d9c0e1f

Datei anzeigen

@ -133,13 +133,16 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
newEntity.a = entity.a;
newEntity.health = entity.health;
newEntity.fireTicks = entity.fireTicks;
newEntity.inventory = entity.inventory;
newEntity.inventory.e = newEntity;
newEntity.activeContainer = entity.activeContainer;
newEntity.defaultContainer = entity.defaultContainer;
newWorld.A.d((int) location.getBlockX() >> 4, (int) location.getBlockZ() >> 4);
newEntity.a.a(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
newWorld.manager.a(newEntity);
newWorld.a(newEntity);
manager.b.add(newEntity);
newEntity.l();
entity.a.e = newEntity;
entity = newEntity;