From c4cd9e8f569c7195b9876243c001db7978d431b4 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 28 May 2023 09:57:26 -0400 Subject: [PATCH] Misc minor bugfixes --- core/src/mindustry/ai/BaseBuilderAI.java | 2 +- core/src/mindustry/logic/LStatements.java | 2 +- core/src/mindustry/world/blocks/power/LightBlock.java | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/mindustry/ai/BaseBuilderAI.java b/core/src/mindustry/ai/BaseBuilderAI.java index b3093b4f17..763fd15ee5 100644 --- a/core/src/mindustry/ai/BaseBuilderAI.java +++ b/core/src/mindustry/ai/BaseBuilderAI.java @@ -147,7 +147,7 @@ public class BaseBuilderAI{ } //only schedule when there's something to build. - if((foundPath || (!calculating && !foundPath)) && data.plans.isEmpty() && timer.get(timerStep, Mathf.lerp(placeIntervalMin, placeIntervalMax, data.team.rules().buildAiTier))){ + if((foundPath || !calculating) && data.plans.isEmpty() && timer.get(timerStep, Mathf.lerp(placeIntervalMin, placeIntervalMax, data.team.rules().buildAiTier))){ for(int i = 0; i < attempts; i++){ int range = 150; diff --git a/core/src/mindustry/logic/LStatements.java b/core/src/mindustry/logic/LStatements.java index a8c35141b0..a20f1f30d8 100644 --- a/core/src/mindustry/logic/LStatements.java +++ b/core/src/mindustry/logic/LStatements.java @@ -643,7 +643,7 @@ public class LStatements{ b.clicked(() -> showSelect(b, LogicOp.all, op, o -> { op = o; rebuild(parent); - })); + }, 4, c -> c.width(64f))); }, Styles.logict, () -> {}).size(64f, 40f).pad(4f).color(table.color); } diff --git a/core/src/mindustry/world/blocks/power/LightBlock.java b/core/src/mindustry/world/blocks/power/LightBlock.java index 0d033aac05..8beccc9f76 100644 --- a/core/src/mindustry/world/blocks/power/LightBlock.java +++ b/core/src/mindustry/world/blocks/power/LightBlock.java @@ -38,7 +38,8 @@ public class LightBlock extends Block{ @Override public void init(){ - lightRadius = radius*3f; + lightRadius = radius*2.5f; + clipSize = Math.max(clipSize, lightRadius * 3f); emitLight = true; super.init();