diff options
Diffstat (limited to 'internal/game/cmd_cook.go')
| -rw-r--r-- | internal/game/cmd_cook.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/game/cmd_cook.go b/internal/game/cmd_cook.go index 0e4f194..b37a576 100644 --- a/internal/game/cmd_cook.go +++ b/internal/game/cmd_cook.go @@ -50,7 +50,7 @@ func (g *Game) doCook(sess *net.Session, input string) { var recipes []*item.ItemDef for _, item := range items { c := item.FirstCraft() - if stationMatch(stationDefID, c.Station) && craftMatchesEntry(c, itemID) && craftHasAllItems(c, p.HasItem) { + if stationMatch(stationDefID, c.Station) && craftMatchesEntry(c, itemID) && craftHasAllItems(c, p.CountItem) { recipes = append(recipes, item) } } @@ -71,7 +71,7 @@ func (g *Game) showCookMenu(sess *net.Session, p *player.Player, items []*item.I if seen[item.ID] { continue } - if !craftHasAllItems(c, p.HasItem) { + if !craftHasAllItems(c, p.CountItem) { continue } seen[item.ID] = true |
