Update player instance in connection when respawning
This commit is contained in:
parent
2b26363b11
commit
cdb2ba1d43
|
@ -447,6 +447,7 @@ public abstract class PlayerListMixin implements PlayerListBridge {
|
||||||
if ((Object) playerIn instanceof Mob) {
|
if ((Object) playerIn instanceof Mob) {
|
||||||
((Mob) (Object) playerIn).dropLeash(true, false);
|
((Mob) (Object) playerIn).dropLeash(true, false);
|
||||||
}
|
}
|
||||||
|
playerIn.connection.player = serverplayerentity;
|
||||||
|
|
||||||
serverplayerentity.connection = playerIn.connection;
|
serverplayerentity.connection = playerIn.connection;
|
||||||
serverplayerentity.restoreFrom(playerIn, conqueredEnd);
|
serverplayerentity.restoreFrom(playerIn, conqueredEnd);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user