From 219c6481bde70e15a597c951e15f188e02b3529a Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 1 Jul 2023 18:42:04 +0200 Subject: [PATCH] Cauldrons now only accept fire as heat source --- README.md | 1 + src/cooking.lua | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9de058b..504c793 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ The following bugs of X-Decor (as of 01/07/2023) are fixed: * Fix boiling water in cauldrons not reliably cooling down * Fix boiling water sound not playing when rejoining * Fix cauldron with soup boiling forever +* Fix cauldrons being heated up by fireflies * Fix rope and painting not compatible with itemframe * Fix itemframe, lever being offset when put into itemframe * Fix storage formspecs not closing if exploded diff --git a/src/cooking.lua b/src/cooking.lua index bf5e030..21821fb 100644 --- a/src/cooking.lua +++ b/src/cooking.lua @@ -27,10 +27,7 @@ local function is_heated(pos) local below_node = {x = pos.x, y = pos.y - 1, z = pos.z} local nn = minetest.get_node(below_node).name -- Check fire group - if minetest.get_item_group(nn, "fire") == 1 then - return true - -- Hacky: If the string "fire" is in the node name - elseif nn:find("fire") then + if minetest.get_item_group(nn, "fire") ~= 0 then return true else return false