From bc70c08820edf4d07e332ac162ff4a7503f14a10 Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 4 Dec 2020 10:25:41 -0500 Subject: [PATCH] Fixed #3756 --- core/src/mindustry/entities/comp/BuildingComp.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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; + } } }