mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-27 08:00:04 +07:00
Update ConstructBlock.java
This commit is contained in:
parent
c26a9bd123
commit
664cd6a3a0
@ -288,6 +288,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;
|
||||
|
Loading…
Reference in New Issue
Block a user