mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Fixed #4079
This commit is contained in:
parent
ceb298ca0b
commit
7f49f0c6fa
1 changed files with 2 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ abstract class BuilderComp implements Posc, Teamc, Rotc{
|
|||
|
||||
Tile tile = world.tile(current.x, current.y);
|
||||
|
||||
if(!(tile.block() instanceof ConstructBlock)){
|
||||
if(!(tile.build instanceof ConstructBuild cb)){
|
||||
if(!current.initialized && !current.breaking && Build.validPlace(current.block, team, current.x, current.y, current.rotation)){
|
||||
boolean hasAll = infinite || current.isRotation(team) || !Structs.contains(current.block.requirements, i -> core != null && !core.items.has(i.item));
|
||||
|
||||
|
|
@ -92,7 +92,7 @@ abstract class BuilderComp implements Posc, Teamc, Rotc{
|
|||
plans.removeFirst();
|
||||
return;
|
||||
}
|
||||
}else if(tile.team() != team && tile.team() != Team.derelict){
|
||||
}else if((tile.team() != team && tile.team() != Team.derelict) || (!current.breaking && cb.cblock != current.block)){
|
||||
plans.removeFirst();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue