mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-27 17:43:53 +01:00
Comment out debug line
This commit is contained in:
parent
5009ca7782
commit
91f11a2b0d
@ -65,14 +65,14 @@ end
|
||||
-- @param id number The content/node id to check.
|
||||
-- @return bool Whether the given node/content id is a liquid-ish node or not.
|
||||
function worldeditadditions.is_liquidlike(id)
|
||||
print("[is_liquidlike]")
|
||||
-- print("[is_liquidlike]")
|
||||
if id == node_id_ignore then return false end
|
||||
|
||||
local node_name = minetest.get_name_from_content_id(id)
|
||||
if node_name == nil or not minetest.registered_nodes[node_name] then return false end
|
||||
|
||||
local liquidtype = minetest.registered_nodes[node_name].liquidtype
|
||||
print("[is_liquidlike]", "id", id, "liquidtype", liquidtype)
|
||||
-- print("[is_liquidlike]", "id", id, "liquidtype", liquidtype)
|
||||
|
||||
if liquidtype == nil or liquidtype == "none" then return false end
|
||||
-- If it's not none, then it has to be a liquid as the only other values are source and flowing
|
||||
|
Loading…
Reference in New Issue
Block a user