mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-12-02 08:48:00 +01:00
Format TextureLoader
This commit is contained in:
parent
77abeac10e
commit
8a146109ce
1 changed files with 5 additions and 3 deletions
|
@ -6,9 +6,11 @@ import net.minecraft.util.ResourceLocation;
|
||||||
|
|
||||||
public class TextureLoader {
|
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) {
|
public static void loadTexture(ResourceLocation textureLocation, ITextureObject textureObj) {
|
||||||
mc.addScheduledTask((Runnable) () -> mc.getTextureManager().loadTexture(textureLocation, textureObj));
|
mc.addScheduledTask(() -> {
|
||||||
|
mc.getTextureManager().loadTexture(textureLocation, textureObj);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue