fix: player skin when only changing name

This commit is contained in:
aro 2022-12-14 15:58:02 +01:00
parent 262622332a
commit 95453f24d1
4 changed files with 5 additions and 4 deletions

View file

@ -95,7 +95,7 @@ public class v1_18_R1 implements Internals {
final PacketPlayOutPlayerInfo add = new PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction.a);
final GameProfile gameProfile = new GameProfile(player.getUniqueId(), profile.getName());
if (skinChange) {
if (skinChange || !profile.getSkin().equalsIgnoreCase(player.getName())) {
try {
final Optional<String> uuid = NickoBukkit.getInstance().getMojangAPI().getUUID(profile.getSkin());
if (uuid.isPresent()) {