1
0
mirror of https://github.com/HybridDog/nether-pack.git synced 2024-12-25 18:20:23 +01:00

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 return 0
end end
local data = minetest.registered_nodes[nd] local data = minetest.registered_nodes[nd]
if not data then
-- unknown node
return false
end
local drawtype = data.drawtype local drawtype = data.drawtype
if drawtype if drawtype
and drawtype ~= "normal" and drawtype ~= "normal"