From b3568f03e4103dd46db2ccc680fbab0a6454d604 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 15 Sep 2026 13:56:10 -0400 Subject: fix: telnet buffer reuse, bank stack handling, transport casino gate, and admin cache invalidation --- internal/game/game.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'internal/game/game.go') diff --git a/internal/game/game.go b/internal/game/game.go index 23e0635..822042e 100644 --- a/internal/game/game.go +++ b/internal/game/game.go @@ -237,6 +237,10 @@ func (g *Game) handleGameCommand(sess *net.Session, input string) { } parts := strings.Fields(strings.ToLower(input)) + if len(parts) == 0 { + g.reprompt(sess) + return + } cmd := parts[0] if len(parts) == 1 { @@ -369,6 +373,12 @@ func (g *Game) buildCraftIndex() { g.CraftIndex.Build(items) } +// RebuildCraftIndex refreshes the craft index after item definitions change +// on disk (wired into the admin web editor's item mutation paths). +func (g *Game) RebuildCraftIndex() { + g.buildCraftIndex() +} + type pendingDepletion struct { instanceKey string objDefID string -- cgit v1.2.3