From 61f3fdbdf405d4da548b735c66a8196415b4693d Mon Sep 17 00:00:00 2001 From: cheapie Date: Sat, 14 Jan 2017 03:32:19 -0600 Subject: Fix cabinet detection --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 9a29f8a..c45740e 100644 --- a/init.lua +++ b/init.lua @@ -236,7 +236,7 @@ local fw = loadfile(minetest.get_modpath("ltc4000e")..DIR_DELIM.."fw.lua") local function run(pos,event) --Determine controller type local node = minetest.get_node(pos) - local is_cabinet = (node.name == "ltc4000e:nema_bottom") + local is_cabinet = (node.name == "ltc4000e:nema_bottom" or node.name == "ltc4000e:nema_bottom_open") --Initialize environment local context = {} -- cgit v1.2.3