Fixed own skin not loading after respawn

This commit is contained in:
RaphiMC 2023-07-12 16:54:10 +02:00
parent dbf995863e
commit 102b8a55db
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94

View File

@ -189,6 +189,11 @@ public class Protocol1_8to1_7_6_10 extends AbstractProtocol<ClientboundPackets1_
wrapper.user().get(EntityTracker.class).clear();
}
});
handler(wrapper -> {
final ProtocolInfo protocolInfo = wrapper.user().getProtocolInfo();
final TablistStorage tablistStorage = wrapper.user().get(TablistStorage.class);
tablistStorage.sendTempEntry(new TabListEntry(protocolInfo.getUsername(), protocolInfo.getUuid())); // load own skin
});
}
});
this.registerClientbound(ClientboundPackets1_7_2.PLAYER_POSITION, new PacketHandlers() {