Fix ghost item on respawn

This commit is contained in:
TheMode 2021-05-05 05:43:41 +02:00
parent e4680d1f8d
commit 916650b4c8

View File

@ -1422,7 +1422,6 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
* and send data to his new viewers.
*/
protected void refreshAfterTeleport() {
getInventory().update();
sendPacketsToViewers(getEntityType().getSpawnType().getSpawnPacket(this));
@ -1432,6 +1431,8 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
sendPacketToViewersAndSelf(getPropertiesPacket());
sendPacketToViewersAndSelf(getEquipmentsPacket());
getInventory().update();
{
// Send new chunks
final BlockPosition pos = position.toBlockPosition();