diff --git a/core/src/mindustry/world/meta/StatValues.java b/core/src/mindustry/world/meta/StatValues.java index 00ac191ac9..054d1d0276 100644 --- a/core/src/mindustry/world/meta/StatValues.java +++ b/core/src/mindustry/world/meta/StatValues.java @@ -465,7 +465,7 @@ public class StatValues{ public static StatValue itemEffMultiplier(Floatf efficiency, float timePeriod, Boolf filter, @Nullable ObjectFloatMap itemDurationMultipliers){ return table -> { - table.getCells().peek().growX(); //Expand the spacer on the row above to push everything to the left + if(table.getCells().size > 0) table.getCells().peek().growX(); //Expand the spacer on the row above to push everything to the left table.row(); table.table(c -> { for(Item item : content.items().select(i -> filter.get(i) && i.unlockedNow() && !i.isHidden())){ @@ -484,7 +484,7 @@ public class StatValues{ public static StatValue liquidEffMultiplier(Floatf efficiency, float amount, Boolf filter){ return table -> { - table.getCells().peek().growX(); //Expand the spacer on the row above to push everything to the left + if(table.getCells().size > 0) table.getCells().peek().growX(); //Expand the spacer on the row above to push everything to the left table.row(); table.table(c -> { for(Liquid liquid : content.liquids().select(l -> filter.get(l) && l.unlockedNow() && !l.isHidden())){