From 9afb8c058b4e6a0c4c717ddbe779b377cf6f7a93 Mon Sep 17 00:00:00 2001 From: Kelly Kinkade Date: Sun, 17 Aug 2025 18:32:50 -0500 Subject: [PATCH 1/2] `ban-cooking`: don't fail when honey missing Do not attempt to ban honey if honey doesn't exist --- ban-cooking.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ban-cooking.lua b/ban-cooking.lua index fdb59fbe05..7ac6f3ea3b 100644 --- a/ban-cooking.lua +++ b/ban-cooking.lua @@ -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() From 6a893937289d287070ab4dfbb3be104aa36abc96 Mon Sep 17 00:00:00 2001 From: Kelly Kinkade Date: Sun, 17 Aug 2025 18:36:48 -0500 Subject: [PATCH 2/2] Update changelog.txt --- changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.txt b/changelog.txt index 89fd20ca8a..6eeaffd48e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 - `immortal-cravings`: prioritize high-value meals, properly split of portions, and don't go eating or drinking on a full stomach ## Misc Improvements