Misc minor bugfixes

This commit is contained in:
Anuken
2023-05-28 09:57:26 -04:00
parent ab95b88c05
commit c4cd9e8f56
3 changed files with 4 additions and 3 deletions

View File

@@ -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;

View File

@@ -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);
}

View File

@@ -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();