mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-03-26 08:41:12 -07:00
Fixed mass-block-breaking visual bug
This commit is contained in:
parent
91501d39ee
commit
8ec9d95cd2
1 changed files with 4 additions and 1 deletions
|
|
@ -126,7 +126,10 @@ public interface BuilderTrait {
|
|||
if(Build.validBreak(unit.getTeam(), current.x, current.y)){
|
||||
//if it's valid, place it
|
||||
//FIXME a player instance is required here, but the the builder may not be a player
|
||||
CallBlocks.breakBlock((Player)unit, unit.getTeam(), current.x, current.y);
|
||||
if(!current.requested){
|
||||
CallBlocks.breakBlock((Player)unit, unit.getTeam(), current.x, current.y);
|
||||
current.requested = true;
|
||||
}
|
||||
}else{
|
||||
//otherwise, skip it
|
||||
getPlaceQueue().removeFirst();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue