Update ConstructBlock.java

This commit is contained in:
Patrick 'Quezler' Mounier 2020-12-02 16:26:22 +01:00 committed by GitHub
parent c26a9bd123
commit 664cd6a3a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;