9
0
mirror of https://github.com/GeyserExtensionists/GeyserUtils.git synced 2025-12-19 15:09:24 +00:00

fix skin disappear

This commit is contained in:
zimzaza4
2024-03-31 22:09:36 +08:00
parent fb42a208bb
commit 7dbcba305e

View File

@@ -242,8 +242,9 @@ public class GeyserUtils implements Extension {
PlayerSkinPacket packet = new PlayerSkinPacket();
packet.setUuid(entity.getUuid());
packet.setOldSkinName("");
packet.setNewSkinName(skin.getTextureUrl());
packet.setSkin(getSkin(skin.getTextureUrl(), skin, cape, geometry));
String skinId = skin.getTextureUrl() + UUID.randomUUID().toString().replace("-", "");
packet.setNewSkinName(skinId);
packet.setSkin(getSkin(skinId, skin, cape, geometry));
packet.setTrustedSkin(true);
session.sendUpstreamPacket(packet);
}