[6.0] fix build requirement check for sandbox (#1873)

* Fix not being able to start building in 6.0 sandbox

* Make 〃 more logical
This commit is contained in:
Patrick 'Quezler' Mounier 2020-04-16 15:11:23 +02:00 committed by GitHub
parent 8a01b87c99
commit 7254204ae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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