mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-04 17:59:49 +01:00
Fix ghost item on respawn
This commit is contained in:
parent
e4680d1f8d
commit
916650b4c8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user