Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ban-cooking.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ end

funcs.honey = function()
local mat = dfhack.matinfo.find("CREATURE:HONEY_BEE:HONEY")
ban_cooking('honey bee honey', mat.type, mat.index, df.item_type.LIQUID_MISC, -1)
if mat then
ban_cooking('honey bee honey', mat.type, mat.index, df.item_type.LIQUID_MISC, -1)
end
end

funcs.tallow = function()
Expand Down
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Template for new versions:
- `deathcause`: added functionality to this script to fetch cause of death programatically

## Fixes
- `ban-cooking`: will not fail trying to ban honey if the world has no honey
- `confirm`: only show pause option for pausable confirmations
- `confirm`: when editing a uniform, confirm discard of changes when exiting with Escape
- `confirm`: when removing a manager order, show correct order description when using non-100% interface setting
Expand Down
Loading