diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/HDSkinManager.java b/src/hdskins/java/com/voxelmodpack/hdskins/HDSkinManager.java index 6b39fcc1..b0532637 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/HDSkinManager.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/HDSkinManager.java @@ -88,10 +88,6 @@ public final class HDSkinManager implements IResourceManagerReloadListener, ISki private Class skinsClass = null; - public static void clearSkinCache() { - INSTANCE.clearSKinCache(); - } - public static PreviewTextureManager getPreviewTextureManager(GameProfile profile) { return new PreviewTextureManager(INSTANCE.getGatewayServer().getPreviewTextures(profile)); } @@ -270,7 +266,7 @@ public final class HDSkinManager implements IResourceManagerReloadListener, ISki clearListeners.add(listener); } - private void clearSKinCache() { + public void clearSkinCache() { LiteLoaderLogger.info("Clearing local player skin cache"); try { diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/LiteModHDSkins.java b/src/hdskins/java/com/voxelmodpack/hdskins/LiteModHDSkins.java index c39a774a..5c0718e1 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/LiteModHDSkins.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/LiteModHDSkins.java @@ -60,7 +60,7 @@ public class LiteModHDSkins implements InitCompleteListener, ViewportListener, C @Override public void upgradeSettings(String version, File configPath, File oldConfigPath) { - HDSkinManager.clearSkinCache(); + HDSkinManager.INSTANCE.clearSkinCache(); } @Override diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/gui/GuiSkins.java b/src/hdskins/java/com/voxelmodpack/hdskins/gui/GuiSkins.java index 2f8590b6..5c1ab6d2 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/gui/GuiSkins.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/gui/GuiSkins.java @@ -11,7 +11,6 @@ import com.mojang.authlib.minecraft.MinecraftProfileTexture; import com.mojang.authlib.minecraft.MinecraftProfileTexture.Type; import com.mumfrey.liteloader.util.log.LiteLoaderLogger; import com.voxelmodpack.hdskins.HDSkinManager; -import com.voxelmodpack.hdskins.server.SkinServer; import com.voxelmodpack.hdskins.upload.FileDropListener; import com.voxelmodpack.hdskins.upload.ThreadOpenFilePNG; @@ -226,7 +225,7 @@ public class GuiSkins extends GuiScreen { super.onGuiClosed(); localPlayer.releaseTextures(); remotePlayer.releaseTextures(); - HDSkinManager.clearSkinCache(); + HDSkinManager.INSTANCE.clearSkinCache(); GLWindow.current().clearDropTargetListener(); } diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/gui/HDSkinsConfigPanel.java b/src/hdskins/java/com/voxelmodpack/hdskins/gui/HDSkinsConfigPanel.java index ed2b89e5..27c91c90 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/gui/HDSkinsConfigPanel.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/gui/HDSkinsConfigPanel.java @@ -41,7 +41,7 @@ public class HDSkinsConfigPanel implements ConfigPanel { Minecraft mc = Minecraft.getMinecraft(); if (button.mousePressed(mc, mouseX, mouseY)) { - HDSkinManager.clearSkinCache(); + HDSkinManager.INSTANCE.clearSkinCache(); } else if (checkbox.mousePressed(mc, mouseX, mouseY)) { checkbox.checked = !checkbox.checked; mod.experimentalSkinDrop = checkbox.checked;