From 8951a2698e31cb243dbdd737530dfcf0b3bd3c7c Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 14 May 2025 11:19:10 -0400 Subject: [PATCH] Stricter construct checks --- core/src/mindustry/entities/comp/BuilderComp.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/entities/comp/BuilderComp.java b/core/src/mindustry/entities/comp/BuilderComp.java index 866717c452..65bacbbd2c 100644 --- a/core/src/mindustry/entities/comp/BuilderComp.java +++ b/core/src/mindustry/entities/comp/BuilderComp.java @@ -147,7 +147,7 @@ abstract class BuilderComp implements Posc, Statusc, Teamc, Rotc{ if(hasAll){ Call.beginPlace(self(), current.block, team, current.x, current.y, current.rotation); - if(current.block.instantBuild){ + if(!net.client() && current.block.instantBuild){ if(plans.size > 0){ plans.removeFirst(); } @@ -188,7 +188,7 @@ abstract class BuilderComp implements Posc, Statusc, Teamc, Rotc{ //otherwise, update it. if(current.breaking){ entity.deconstruct(self(), core, bs); - }else if(entity.current != null && entity.current.unlockedNowHost()){ //only allow building unlocked blocks + }else if(entity.current != null && (state.isEditor() || (state.rules.waves && team == state.rules.waveTeam && entity.current.isVisible()) || (entity.current.unlockedNowHost() && entity.current.environmentBuildable() && entity.current.isPlaceable()))){ //only allow building unlocked blocks entity.construct(self(), core, bs, current.config); }