mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-20 09:17:19 +07:00
[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:
parent
8a01b87c99
commit
7254204ae5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user