Skip to content

Commit

Permalink
fix: 使用ld后端应用皮肤时会在Windows上会显示警告
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Nov 21, 2023
1 parent f22fc6a commit 7812a8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public void applySkin(GameProfile profile)
var LDprofile = ReflectionManager.getGameProfileWithThisSkin(wrappedProfile.getUUID(), wrappedProfile.getName(), wrappedProfile);

//LD不支持直接用profile设置皮肤,只能先存到本地设置完再移除
DisguiseAPI.addGameProfile(LDprofile.toString(), LDprofile);
DisguiseAPI.addGameProfile("fm_" + LDprofile.hashCode(), LDprofile);
playerDisguise.setSkin(LDprofile);
DisguiseUtilities.removeGameProfile(LDprofile.toString());

Expand Down

0 comments on commit 7812a8a

Please sign in to comment.