diff options
Diffstat (limited to 'internal/game/game.go')
| -rw-r--r-- | internal/game/game.go | 10 |
1 files changed, 10 insertions, 0 deletions
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 |
