aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_farm.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_farm.go')
-rw-r--r--internal/game/cmd_farm.go3
1 files changed, 2 insertions, 1 deletions
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",