diff --git a/lib/src/multicraft/MultiCrafter.java b/lib/src/multicraft/MultiCrafter.java index fd320bb..359bcbb 100644 --- a/lib/src/multicraft/MultiCrafter.java +++ b/lib/src/multicraft/MultiCrafter.java @@ -191,6 +191,7 @@ public class MultiCrafterBuild extends PayloadBlockBuild implements Hea * Serialized */ public float craftingTime; + public float totalProgress; /** * Serialized */ @@ -304,6 +305,7 @@ public void updateTile() { if (wasVisible && Mathf.chanceDelta(updateEffectChance)) updateEffect.at(x + Mathf.range(size * 4f), y + Mathf.range(size * 4)); } else warmup = Mathf.approachDelta(warmup, 0f, warmupSpeed); + totalProgress += warmup * Time.delta; if (moveInPayload()) { yeetPayload(payload); @@ -581,6 +583,11 @@ public float progress() { return Mathf.clamp(cur.craftTime > 0f ? craftingTime / cur.craftTime : 1f); } + @Override + public float totalProgress(){ + return totalProgress; + } + @Override public void display(Table table) { super.display(table);