From 4fc113e9e6cdda0abf8a9a5e29f62da87522fd8e Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Tue, 10 Nov 2015 21:51:33 -0800 Subject: [PATCH] Think I really misread that to begin with. --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index a749fc0..b78e9bf 100644 --- a/init.lua +++ b/init.lua @@ -114,7 +114,7 @@ local function node_is_plant(node) if not minetest.registered_nodes[name] then return false end - local drawtype = get_nodedef_field(name, "drawtype") + local drawtype = minetest.registered_nodes[name]["drawtype"] if drawtype == "plantlike" then return true end @@ -176,7 +176,7 @@ local function node_is_liquid(node) if not minetest.registered_nodes[name] then return false end - local drawtype = get_nodedef_field(name, "drawtype") + local drawtype = minetest.registered_nodes[name]["drawtype"] if drawtype then if (drawtype == "liquid") or (drawtype == "flowingliquid") then return true