Possible crash fix
This commit is contained in:
@@ -68,13 +68,12 @@ public class Schematics implements Loadable{
|
|||||||
shadowBuffer.dispose();
|
shadowBuffer.dispose();
|
||||||
if(errorTexture != null){
|
if(errorTexture != null){
|
||||||
errorTexture.dispose();
|
errorTexture.dispose();
|
||||||
|
errorTexture = null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Events.on(ClientLoadEvent.class, event -> {
|
Events.on(ClientLoadEvent.class, event -> {
|
||||||
Pixmap pixmap = Core.atlas.getPixmap("error").crop();
|
errorTexture = new Texture("sprites/error.png");
|
||||||
errorTexture = new Texture(pixmap);
|
|
||||||
pixmap.dispose();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user