diff --git a/ban-cooking.lua b/ban-cooking.lua index eca6b63c57..0a672834ba 100644 --- a/ban-cooking.lua +++ b/ban-cooking.lua @@ -90,7 +90,7 @@ funcs.booze = function() for _, c in ipairs(df.global.world.raws.creatures.all) do for _, m in ipairs(c.material) do if m.flags.ALCOHOL and m.flags.EDIBLE_COOKED then - local matinfo = dfhack.matinfo.find(creature_id.id, m.id) + local matinfo = dfhack.matinfo.find(c.creature_id, m.id) ban_cooking(c.name[2] .. ' ' .. m.id, matinfo.type, matinfo.index, df.item_type.DRINK, -1) end end diff --git a/changelog.txt b/changelog.txt index ce9ac65c9e..2909fae9a3 100644 --- a/changelog.txt +++ b/changelog.txt @@ -31,6 +31,7 @@ Template for new versions: ## New Features ## Fixes +- `ban-cooking`: fix banning creature alcohols resulting in error ## Misc Improvements - `gui/control-panel`: reduce frequency for `warn-stranded` check to once every 2 days