mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 23:42:59 +00:00
Comment out debug line
This commit is contained in:
parent
5009ca7782
commit
91f11a2b0d
1 changed files with 2 additions and 2 deletions
|
@ -65,14 +65,14 @@ end
|
||||||
-- @param id number The content/node id to check.
|
-- @param id number The content/node id to check.
|
||||||
-- @return bool Whether the given node/content id is a liquid-ish node or not.
|
-- @return bool Whether the given node/content id is a liquid-ish node or not.
|
||||||
function worldeditadditions.is_liquidlike(id)
|
function worldeditadditions.is_liquidlike(id)
|
||||||
print("[is_liquidlike]")
|
-- print("[is_liquidlike]")
|
||||||
if id == node_id_ignore then return false end
|
if id == node_id_ignore then return false end
|
||||||
|
|
||||||
local node_name = minetest.get_name_from_content_id(id)
|
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
|
if node_name == nil or not minetest.registered_nodes[node_name] then return false end
|
||||||
|
|
||||||
local liquidtype = minetest.registered_nodes[node_name].liquidtype
|
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 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
|
-- If it's not none, then it has to be a liquid as the only other values are source and flowing
|
||||||
|
|
Loading…
Reference in a new issue