From b96e93917cfecb6f02160a871afcd8b37fd0ca8f Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 4 Feb 2025 14:49:30 -0500 Subject: [PATCH] Cleanup --- core/src/mindustry/world/blocks/production/WallCrafter.java | 2 +- core/src/mindustry/world/meta/StatValues.java | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/core/src/mindustry/world/blocks/production/WallCrafter.java b/core/src/mindustry/world/blocks/production/WallCrafter.java index 22f621c613..c9e3b3abf2 100644 --- a/core/src/mindustry/world/blocks/production/WallCrafter.java +++ b/core/src/mindustry/world/blocks/production/WallCrafter.java @@ -85,7 +85,7 @@ public class WallCrafter extends Block{ if(consItems && itemConsumer instanceof ConsumeItems coni){ stats.remove(Stat.booster); - stats.add(Stat.booster, StatValues.itemBoosters("{0}" + StatUnit.timesSpeed.localized(), stats.timePeriod, itemBoostIntensity, 0f, coni.items, i -> Structs.contains(coni.items, s -> s.item == i))); + stats.add(Stat.booster, StatValues.itemBoosters("{0}" + StatUnit.timesSpeed.localized(), stats.timePeriod, itemBoostIntensity, 0f, coni.items)); } if(liquidBoostIntensity != 1 && findConsumer(f -> f instanceof ConsumeLiquidBase && f.booster) instanceof ConsumeLiquidBase consBase){ diff --git a/core/src/mindustry/world/meta/StatValues.java b/core/src/mindustry/world/meta/StatValues.java index 8bf34567a2..91efa002d7 100644 --- a/core/src/mindustry/world/meta/StatValues.java +++ b/core/src/mindustry/world/meta/StatValues.java @@ -511,11 +511,6 @@ public class StatValues{ }; } - /** @deprecated Filter is no longer used. */ - public static StatValue itemBoosters(String unit, float timePeriod, float speedBoost, float rangeBoost, ItemStack[] items, Boolf filter){ - return itemBoosters(unit, timePeriod, speedBoost, rangeBoost, items); - } - public static StatValue weapons(UnitType unit, Seq weapons){ return table -> { table.row();