From dfcae69ab74a9f61f0b17b12904b4b1dffad03c4 Mon Sep 17 00:00:00 2001 From: Matthew Messinger Date: Sun, 26 Aug 2018 15:31:46 -0400 Subject: [PATCH] Fix warnings when reloading vanilla client skin. --- .../voxelmodpack/hdskins/mixin/MixinNetworkPlayerInfo.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/mixin/MixinNetworkPlayerInfo.java b/src/hdskins/java/com/voxelmodpack/hdskins/mixin/MixinNetworkPlayerInfo.java index e77db251..1db10deb 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/mixin/MixinNetworkPlayerInfo.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/mixin/MixinNetworkPlayerInfo.java @@ -96,6 +96,10 @@ public abstract class MixinNetworkPlayerInfo implements INetworkPlayerInfo { public void reloadTextures() { synchronized (this) { this.playerTexturesLoaded = false; + if (this.gameProfile.getId().equals(Minecraft.getMinecraft().getSession().getProfile().getId())) { + // local client skin doesn't have a signature. + this.gameProfile.getProperties().removeAll("textures"); + } } }