Fix missing unknown node test in grass_allowed

This commit is contained in:
Hybrid Dog 2017-12-26 08:40:18 +01:00
parent 0a2dbbb0f8
commit 69b3e65c85

View File

@ -970,6 +970,10 @@ local function grass_allowed(pos)
return 0
end
local data = minetest.registered_nodes[nd]
if not data then
-- unknown node
return false
end
local drawtype = data.drawtype
if drawtype
and drawtype ~= "normal"