mirror of
https://github.com/HybridDog/nether-pack.git
synced 2024-12-26 02:30:24 +01:00
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
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user