Crash fix

This commit is contained in:
Anuken
2022-06-14 11:26:22 -04:00
parent 122c7654e5
commit caed77bac2

View File

@@ -1305,7 +1305,7 @@ public class Block extends UnlockableContent implements Senseable{
editorBase = new PixmapRegion(base); editorBase = new PixmapRegion(base);
}else{ }else{
editorBase = Core.atlas.getPixmap(gen[0]); editorBase = gen[0] == null ? Core.atlas.getPixmap(fullIcon) : Core.atlas.getPixmap(gen[0]);
} }
packer.add(PageType.editor, name + "-icon-editor", editorBase); packer.add(PageType.editor, name + "-icon-editor", editorBase);