Update player instance in connection when respawning

This commit is contained in:
IzzelAliz 2022-04-14 23:10:07 +08:00
parent 2b26363b11
commit cdb2ba1d43
No known key found for this signature in database
GPG Key ID: EE50E123A11D8338

View File

@ -447,6 +447,7 @@ public abstract class PlayerListMixin implements PlayerListBridge {
if ((Object) playerIn instanceof Mob) {
((Mob) (Object) playerIn).dropLeash(true, false);
}
playerIn.connection.player = serverplayerentity;
serverplayerentity.connection = playerIn.connection;
serverplayerentity.restoreFrom(playerIn, conqueredEnd);