mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-12-02 00:37:59 +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 {
|
||||
|
||||
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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue