summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAuke Kok <sofar@foo-projects.org>2015-11-10 21:51:33 -0800
committerAuke Kok <sofar@foo-projects.org>2015-11-10 21:51:33 -0800
commit4fc113e9e6cdda0abf8a9a5e29f62da87522fd8e (patch)
tree8836af6bc0239e4c684d92a1a8dd41a6d37081ac
parent8feefb185833f659bc3a6591f9f003d3b16c4120 (diff)
Think I really misread that to begin with.
-rw-r--r--init.lua4
1 files 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