diff --git a/mods/ITEMS/mcl_sponges/init.lua b/mods/ITEMS/mcl_sponges/init.lua index 2ad65bd29..ea6067e9c 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