From 9f68fe520b78f0f1e272c4c1d25f62fe4225f2d3 Mon Sep 17 00:00:00 2001 From: Zelaux <58040045+Zelaux@users.noreply.github.com> Date: Fri, 27 Aug 2021 20:08:04 +0500 Subject: [PATCH] Fixed incorrect work of TextureRegion.found() when creating icons (#5879) * Fixed incorrect work of TextureRegion.found() when creating icons * fixed comment text * fixed comment text --- core/src/mindustry/mod/Mods.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/mindustry/mod/Mods.java b/core/src/mindustry/mod/Mods.java index e53de0a4ad..8e3f3ad2b1 100644 --- a/core/src/mindustry/mod/Mods.java +++ b/core/src/mindustry/mod/Mods.java @@ -225,6 +225,10 @@ public class Mods implements Loadable{ var shadow = Core.atlas; //dummy texture atlas that returns the 'shadow' regions; used for mod loading Core.atlas = new TextureAtlas(){ + { + //needed for the correct operation of the found() method in the TextureRegion + error = shadow.find("error"); + } @Override public AtlasRegion find(String name){