From e19c857d74a7faf920ca5a0bc9c2a29b3414eae5 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 2 Dec 2020 16:08:53 -0500 Subject: [PATCH] Possible crash fix --- core/src/mindustry/game/Schematics.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/mindustry/game/Schematics.java b/core/src/mindustry/game/Schematics.java index 2d526606c7..b5729e3ec6 100644 --- a/core/src/mindustry/game/Schematics.java +++ b/core/src/mindustry/game/Schematics.java @@ -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"); }); }