mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 14:32:06 -08:00
Fixed block plans not being deleted locally
This commit is contained in:
parent
f7f2b3438c
commit
33d4ab9edb
1 changed files with 5 additions and 1 deletions
|
|
@ -888,10 +888,14 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||
removed.clear();
|
||||
|
||||
//remove blocks to rebuild
|
||||
for(BlockPlan req : player.team().data().blocks){
|
||||
Iterator<BlockPlan> broken = player.team().data().blocks.iterator();
|
||||
while(broken.hasNext()){
|
||||
BlockPlan req = broken.next();
|
||||
Block block = content.block(req.block);
|
||||
if(block.bounds(req.x, req.y, Tmp.r2).overlaps(Tmp.r1)){
|
||||
removed.add(Point2.pack(req.x, req.y));
|
||||
req.removed = true;
|
||||
broken.remove();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue