From f798698b4ca71dbbe6d9a57b889a887da685ea3f Mon Sep 17 00:00:00 2001 From: AFCMS Date: Wed, 19 May 2021 00:23:43 +0200 Subject: [PATCH] fixes in comments, debug messages and groups --- mods/ITEMS/mcl_sponges/init.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mods/ITEMS/mcl_sponges/init.lua b/mods/ITEMS/mcl_sponges/init.lua index 2ad65bd295..ea6067e9cf 100644 --- a/mods/ITEMS/mcl_sponges/init.lua +++ b/mods/ITEMS/mcl_sponges/init.lua @@ -86,8 +86,9 @@ function mcl_sponges.absorb(pos) end end end + --DEBUG minetest.chat_send_all(count) - -- The dominant water type wins. In case of a tie, normal water wins. + -- The dominant liquid type wins. In case of a tie, normal water wins. -- This slight bias is intentional. local sponge_type local biggest @@ -134,10 +135,10 @@ minetest.register_node("mcl_sponges:sponge", { local pos = pointed_thing.above local on_water = false - if minetest.get_item_group(minetest.get_node(pos).name, "water") ~= 0 then + if minetest.get_item_group(minetest.get_node(pos).name, "liquid") ~= 0 then on_water = true end - local water_found = minetest.find_node_near(pos, 1, "group:water") + local water_found = minetest.find_node_near(pos, 1, "group:liquid") if water_found ~= nil then on_water = true end