From d1c1455565378bdcbe04335a0c34b568c4538d6e Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 12 May 2022 00:38:32 -0400 Subject: [PATCH] Don't sense hidden items/liquids --- core/src/mindustry/logic/LStatements.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/logic/LStatements.java b/core/src/mindustry/logic/LStatements.java index 9d5c919b89..0fdfaf17c2 100644 --- a/core/src/mindustry/logic/LStatements.java +++ b/core/src/mindustry/logic/LStatements.java @@ -490,7 +490,7 @@ public class LStatements{ i.left(); int c = 0; for(Item item : Vars.content.items()){ - if(!item.unlockedNow()) continue; + if(!item.unlockedNow() || item.hidden) continue; i.button(new TextureRegionDrawable(item.uiIcon), Styles.flati, iconSmall, () -> { stype("@" + item.name); hide.run(); @@ -504,7 +504,7 @@ public class LStatements{ i.left(); int c = 0; for(Liquid item : Vars.content.liquids()){ - if(!item.unlockedNow()) continue; + if(!item.unlockedNow() || item.hidden) continue; i.button(new TextureRegionDrawable(item.uiIcon), Styles.flati, iconSmall, () -> { stype("@" + item.name); hide.run();