fix nil error

This commit is contained in:
TenPlus1 2019-01-03 20:30:27 +00:00
parent d9b5ff6c3c
commit 7042676ab9

View File

@ -705,7 +705,7 @@ minetest.register_abm({
local p = {x = pos.x, y = pos.y - 1, z = pos.z}
local nod = minetest.get_node_or_nil(p)
local def = minetest.registered_nodes[nod.name]
local def = nod and minetest.registered_nodes[nod.name]
if not def or def.walkable then return end