From 2e7725a2c044392b77f0d7a51ad63b0e28e7dd8a Mon Sep 17 00:00:00 2001 From: ducdat0507 <62660527+ducdat0507@users.noreply.github.com> Date: Thu, 15 Dec 2022 11:16:04 +0700 Subject: [PATCH] This should fix logs' NaN bug --- src/data/layers/trees.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/layers/trees.tsx b/src/data/layers/trees.tsx index 9840304..312adbf 100644 --- a/src/data/layers/trees.tsx +++ b/src/data/layers/trees.tsx @@ -434,7 +434,7 @@ const layer = createLayer(id, function (this: BaseLayer) { enabled: management.elfTraining.planterElfTraining.milestones[0].earned })), createMultiplicativeModifier(() => ({ - multiplier: () => Decimal.pow(trees.value, 0.2).log10().pow_base(2), + multiplier: () => Decimal.pow(trees.value, 0.2).max(1).log10().pow_base(2), description: "Ivy Level 3", enabled: management.elfTraining.planterElfTraining.milestones[2].earned })),