mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-15 15:20:57 -08:00
Update ConstructBlock.java
This commit is contained in:
parent
129f21e3a9
commit
2e586c4403
1 changed files with 1 additions and 1 deletions
|
|
@ -289,7 +289,7 @@ public class ConstructBlock extends Block{
|
|||
|
||||
progress = Mathf.clamp(progress - amount);
|
||||
|
||||
if(progress <= previous.deconstructThreshold || state.rules.infiniteResources){
|
||||
if(progress <= (previous == null ? 0 : previous.deconstructThreshold) || state.rules.infiniteResources){
|
||||
if(lastBuilder == null) lastBuilder = builder;
|
||||
Call.deconstructFinish(tile, this.cblock == null ? previous : this.cblock, lastBuilder);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue