mirror of
https://github.com/HybridDog/nether-pack.git
synced 2024-12-25 02:00:23 +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
|
||||
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