More dispose() cleanup

This commit is contained in:
Anuken
2021-03-18 16:29:40 -04:00
parent b0c8426d0f
commit 851fa09e0c

View File

@@ -225,14 +225,6 @@ public class UI implements ApplicationListener, Loadable{
Events.fire(new ResizeEvent());
}
@Override
public void dispose(){
if(packer != null){
packer.dispose();
packer = null;
}
}
public TextureRegionDrawable getIcon(String name){
if(Icon.icons.containsKey(name)) return Icon.icons.get(name);
return Core.atlas.getDrawable("error");