From 7254204ae56e0c22b39a9c9393358d32b4d6295f Mon Sep 17 00:00:00 2001 From: Patrick 'Quezler' Mounier Date: Thu, 16 Apr 2020 15:11:23 +0200 Subject: [PATCH] [6.0] fix build requirement check for sandbox (#1873) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix not being able to start building in 6.0 sandbox * Make 〃 more logical --- core/src/mindustry/entities/def/BuilderComp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/entities/def/BuilderComp.java b/core/src/mindustry/entities/def/BuilderComp.java index 3d7bb56660..361a703a21 100644 --- a/core/src/mindustry/entities/def/BuilderComp.java +++ b/core/src/mindustry/entities/def/BuilderComp.java @@ -75,7 +75,7 @@ abstract class BuilderComp implements Unitc, DrawLayerFlyingc{ if(!current.initialized && !current.breaking && Build.validPlace(team(), current.x, current.y, current.block, current.rotation)){ boolean hasAll = !Structs.contains(current.block.requirements, i -> !core.items().has(i.item)); - if(hasAll){ + if(hasAll || state.rules.infiniteResources){ Build.beginPlace(team(), current.x, current.y, current.block, current.rotation); }else{ current.stuck = true;