Skip to content

Commit

Permalink
Think I really misread that to begin with.
Browse files Browse the repository at this point in the history
  • Loading branch information
sofar committed Nov 11, 2015
1 parent 8feefb1 commit 4fc113e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.lua
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4fc113e

Please sign in to comment.