summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compat-chests.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/compat-chests.lua b/compat-chests.lua
index 69eb2f1..78d865b 100644
--- a/compat-chests.lua
+++ b/compat-chests.lua
@@ -44,6 +44,7 @@ local function chest_lid_obstructed(pos)
local above = { x = pos.x, y = pos.y + 1, z = pos.z }
local def = minetest.registered_nodes[minetest.get_node(above).name]
-- allow ladders, signs, wallmounted things and torches to not obstruct
+ if not def then return true end
if def.drawtype == "airlike" or
def.drawtype == "signlike" or
def.drawtype == "torchlike" or