mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-04 15:27:19 +07:00
Update ConstructBlock.java
This commit is contained in:

committed by
GitHub

parent
c26a9bd123
commit
664cd6a3a0
@ -289,6 +289,9 @@ public class ConstructBlock extends Block{
|
||||
|
||||
progress = Mathf.clamp(progress - amount);
|
||||
|
||||
// fast forward boulder deconstruction when visually already gone
|
||||
if(progress <= 0.35f && previous instanceof Boulder) progress = 0;
|
||||
|
||||
if(progress <= 0 || state.rules.infiniteResources){
|
||||
if(lastBuilder == null) lastBuilder = builder;
|
||||
Call.deconstructFinish(tile, this.cblock == null ? previous : this.cblock, lastBuilder);
|
||||
|
Reference in New Issue
Block a user