Fix player has 0 health after respawn (#133)
This commit is contained in:
parent
006599c6d9
commit
b7ee2e0ddf
@ -444,7 +444,10 @@ public abstract class PlayerListMixin implements PlayerListBridge {
|
||||
}
|
||||
|
||||
serverplayerentity.connection = playerIn.connection;
|
||||
serverplayerentity.copyFrom(playerIn, conqueredEnd); // keep inventory here since inventory dropped at ServerPlayerEntity#onDeath
|
||||
serverplayerentity.copyFrom(playerIn, conqueredEnd);
|
||||
if (!conqueredEnd) { // keep inventory here since inventory dropped at ServerPlayerEntity#onDeath
|
||||
serverplayerentity.inventory.copyInventory(playerIn.inventory);
|
||||
}
|
||||
playerIn.remove(false); // Forge: clone event had a chance to see old data, now discard it
|
||||
serverplayerentity.setEntityId(playerIn.getEntityId());
|
||||
serverplayerentity.setPrimaryHand(playerIn.getPrimaryHand());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user