treat unknown node obstructing chest lid as solid

fixes #207
This commit is contained in:
Vanessa Ezekowitz 2017-10-27 14:49:25 -04:00
parent 7b167224f4
commit 8ffef8e43c

@ -44,6 +44,7 @@ local function chest_lid_obstructed(pos)
local above = { x = pos.x, y = pos.y + 1, z = pos.z } local above = { x = pos.x, y = pos.y + 1, z = pos.z }
local def = minetest.registered_nodes[minetest.get_node(above).name] local def = minetest.registered_nodes[minetest.get_node(above).name]
-- allow ladders, signs, wallmounted things and torches to not obstruct -- allow ladders, signs, wallmounted things and torches to not obstruct
if not def then return true end
if def.drawtype == "airlike" or if def.drawtype == "airlike" or
def.drawtype == "signlike" or def.drawtype == "signlike" or
def.drawtype == "torchlike" or def.drawtype == "torchlike" or