diff --git a/core/src/mindustry/entities/comp/BuildingComp.java b/core/src/mindustry/entities/comp/BuildingComp.java index eea9d45374..7eb81b754c 100644 --- a/core/src/mindustry/entities/comp/BuildingComp.java +++ b/core/src/mindustry/entities/comp/BuildingComp.java @@ -1099,8 +1099,13 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc, public void displayBars(Table table){ for(Func bar : block.bars.list()){ - table.add(bar.get(self())).growX(); - table.row(); + //TODO fix conclusively + try{ + table.add(bar.get(self())).growX(); + table.row(); + }catch(ClassCastException e){ + break; + } } }