fixes in comments, debug messages and groups

This commit is contained in:
AFCMS 2021-05-19 00:23:43 +02:00
parent e8bc475388
commit f798698b4c
1 changed files with 4 additions and 3 deletions

View File

@ -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