From 87d08f0151e643951769e323995f1c5ed89ee200 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 18 Sep 2026 01:50:17 -0400 Subject: fix: harden economy recovery, shutdown concurrency, world validation, and inventory-loss paths --- internal/game/cmd_farm.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/game/cmd_farm.go') diff --git a/internal/game/cmd_farm.go b/internal/game/cmd_farm.go index dec16c0..1c8f4c8 100644 --- a/internal/game/cmd_farm.go +++ b/internal/game/cmd_farm.go @@ -124,7 +124,8 @@ func (g *Game) doPlant(sess *net.Session, input string) { return } - p.RemoveItem(seedID, 1) + // The seed is consumed when the plant action COMPLETES (advancePlant), + // not here: an interrupted action must not destroy the seed. p.Action = &behavior.Action{ Type: "plant", -- cgit v1.2.3