forked from mtcontrib/nether-pack
Fix missing unknown node test in grass_allowed
This commit is contained in:
parent
0a2dbbb0f8
commit
69b3e65c85
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user