diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/TextureLoader.java b/src/hdskins/java/com/voxelmodpack/hdskins/TextureLoader.java index 959e0131..92dbd8db 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/TextureLoader.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/TextureLoader.java @@ -6,9 +6,11 @@ import net.minecraft.util.ResourceLocation; public class TextureLoader { - private static Minecraft mc = Minecraft.getMinecraft(); + private static final Minecraft mc = Minecraft.getMinecraft(); - public static void loadTexture(final ResourceLocation textureLocation, final ITextureObject textureObj) { - mc.addScheduledTask((Runnable) () -> mc.getTextureManager().loadTexture(textureLocation, textureObj)); + public static void loadTexture(ResourceLocation textureLocation, ITextureObject textureObj) { + mc.addScheduledTask(() -> { + mc.getTextureManager().loadTexture(textureLocation, textureObj); + }); } }