From 2c3756071015d7118ff96c46ed08de3e2c9699b6 Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 10 Apr 2025 19:31:54 -0400 Subject: [PATCH] Internal crash fix in wiki generator --- core/src/mindustry/world/meta/StatValues.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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())){