diff options
| author | historia <[not public]> | 2026-06-09 17:15:13 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-09 17:15:13 -0400 |
| commit | 9edc568e16741d443b67fbd23b0d91790085ced9 (patch) | |
| tree | d54be40531ba124dcf8299f9e94bfba4ece273ae /internal/object | |
| parent | 56be6a3f45830594225a765b406816e6179ccde1 (diff) | |
| download | thehouseoficarus-9edc568e16741d443b67fbd23b0d91790085ced9.tar.gz | |
combat, mobs, parsing, toggles, hard disconnect handling
Diffstat (limited to 'internal/object')
| -rw-r--r-- | internal/object/item.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/object/item.go b/internal/object/item.go index 67a2998..84e43b1 100644 --- a/internal/object/item.go +++ b/internal/object/item.go @@ -53,8 +53,8 @@ func (d *ItemDef) MatchesName(input string) bool { if strings.ToLower(d.Name) == lower { return true } - for _, a := range d.Aliases { - if strings.ToLower(a) == lower { + for _, word := range strings.Fields(d.Name) { + if strings.HasPrefix(strings.ToLower(word), lower) { return true } } |
