mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-29 23:48:00 +01:00
Fix error due to cross thread shenanigans
This commit is contained in:
parent
26a7d87e10
commit
892553838b
1 changed files with 6 additions and 1 deletions
|
@ -56,7 +56,12 @@ public class PreviewTextureManager {
|
||||||
|
|
||||||
PreviewTexture skinTexture = new PreviewTexture(texture, def, buffer);
|
PreviewTexture skinTexture = new PreviewTexture(texture, def, buffer);
|
||||||
|
|
||||||
Minecraft.getMinecraft().getTextureManager().loadTexture(location, skinTexture);
|
Minecraft mc = Minecraft.getMinecraft();
|
||||||
|
|
||||||
|
mc.addScheduledTask(() -> {
|
||||||
|
mc.getTextureManager().loadTexture(location, skinTexture);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
return skinTexture;
|
return skinTexture;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue