From b5448c6183f2e8d7a45abe75215c4f63c91cebed Mon Sep 17 00:00:00 2001 From: Nick Kosarev Date: Sun, 9 Jun 2024 17:09:05 +0200 Subject: [PATCH] trees grow fix --- src/lib/game/objects/tree.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/game/objects/tree.ts b/src/lib/game/objects/tree.ts index 1926e80f..9f068128 100644 --- a/src/lib/game/objects/tree.ts +++ b/src/lib/game/objects/tree.ts @@ -162,6 +162,7 @@ export class Tree extends GameObject implements IGameObjectTree { this.isReadyToChop = true } if (this.size >= this.maxSize) { + this.size = this.maxSize return }