Fixed incorrect texture removal

This commit is contained in:
Anuken
2026-09-16 10:17:59 -04:00
parent b3be63437e
commit 22cf431170
+1 -1
View File
@@ -181,7 +181,7 @@ public class DataImagePacker{
public void unload(){
if(patchAtlas != null){
for(var texture : patchAtlas.getTextures()){
if(texture != null) patchAtlas.getTextures().remove(texture);
if(texture != null) Core.atlas.getTextures().remove(texture);
}
for(var region : patchAtlas.getRegions()){
if(region != null){