From 8ffef8e43c96f556f41fab259303ee150fd95b18 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 27 Oct 2017 14:49:25 -0400 Subject: [PATCH] treat unknown node obstructing chest lid as solid fixes #207 --- compat-chests.lua | 1 + 1 file changed, 1 insertion(+) 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