Possible crash fix

This commit is contained in:
Anuken
2020-12-02 16:08:53 -05:00
parent b18f418c61
commit e19c857d74

View File

@@ -68,13 +68,12 @@ public class Schematics implements Loadable{
shadowBuffer.dispose();
if(errorTexture != null){
errorTexture.dispose();
errorTexture = null;
}
});
Events.on(ClientLoadEvent.class, event -> {
Pixmap pixmap = Core.atlas.getPixmap("error").crop();
errorTexture = new Texture(pixmap);
pixmap.dispose();
errorTexture = new Texture("sprites/error.png");
});
}