Fixed build error / Minor wave info dialog correction / Bugfix

This commit is contained in:
Anuken
2019-03-14 14:12:08 -04:00
parent ed105b102d
commit 71751ee18d
2 changed files with 7 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ public class WaveInfoDialog extends FloatingDialog{
}
}
}).growX().height(70f);
}).growY().width(200f).growY();
}).growY().width(180f).growY();
buildGroups();
}
@@ -214,6 +214,8 @@ public class WaveInfoDialog extends FloatingDialog{
spawned[spawn.type.id] += spawn.getUnitsSpawned(wave);
}
int f = 0;
for(int j = 0; j < spawned.length; j++){
if(spawned[j] > 0){
UnitType type = content.getByID(ContentType.unit, j);
@@ -226,7 +228,7 @@ public class WaveInfoDialog extends FloatingDialog{
if(table.getChildren().size == 1){
table.add("$none").color(Pal.remove);
}
}).width(130f).pad(2f);
}).width(110f).pad(2f);
preview.row();
}

View File

@@ -13,6 +13,8 @@ public class PowerDistributor extends PowerBlock{
@Override
public void update(Tile tile){
tile.entity.power.graph.update();
if(tile.entity != null && tile.entity.power != null && tile.entity.power.graph != null){
tile.entity.power.graph.update();
}
}
}