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
This commit is contained in:
Zelaux
2021-08-27 20:08:04 +05:00
committed by GitHub
parent 8c32acbc30
commit 9f68fe520b

View File

@@ -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){