Headless crash fix

This commit is contained in:
Anuken
2024-09-18 09:02:05 -04:00
parent cd7f2459b9
commit 63e246cc9d
2 changed files with 2 additions and 1 deletions

View File

@@ -1126,6 +1126,7 @@ public class MapObjectives implements Iterable<MapObjective>, Eachable<MapObject
public void setTexture(String textureName){
this.textureName = textureName;
if(headless) return;
if(fetchedRegion == null) fetchedRegion = new TextureRegion();
lookupRegion(textureName, fetchedRegion);
}