forked from VoxeLibre/VoxeLibre
fixes in comments, debug messages and groups
This commit is contained in:
parent
e8bc475388
commit
f798698b4c
|
@ -86,8 +86,9 @@ function mcl_sponges.absorb(pos)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
--DEBUG
|
||||||
minetest.chat_send_all(count)
|
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.
|
-- This slight bias is intentional.
|
||||||
local sponge_type
|
local sponge_type
|
||||||
local biggest
|
local biggest
|
||||||
|
@ -134,10 +135,10 @@ minetest.register_node("mcl_sponges:sponge", {
|
||||||
|
|
||||||
local pos = pointed_thing.above
|
local pos = pointed_thing.above
|
||||||
local on_water = false
|
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
|
on_water = true
|
||||||
end
|
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
|
if water_found ~= nil then
|
||||||
on_water = true
|
on_water = true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue