Fixed some crashes

This commit is contained in:
Anuken
2020-11-29 11:08:12 -05:00
parent 67c6e0179f
commit 29be8176c1
2 changed files with 2 additions and 1 deletions

View File

@@ -711,6 +711,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
stable.table(t -> {
t.add("@sectors.resources").padRight(4);
for(UnlockableContent c : sector.info.resources){
if(c == null) continue; //apparently this is possible.
t.image(c.icon(Cicon.small)).padRight(3).size(Cicon.small.size);
}
}).padLeft(10f).fillX().row();