summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2017-01-14 03:32:19 -0600
committercheapie <no-email-for-you@example.com>2017-01-14 03:32:19 -0600
commit61f3fdbdf405d4da548b735c66a8196415b4693d (patch)
tree62e2e3507ffd9d98d6e23a5d0166d976e779bbb3
parent15625d1381be0e50bfe106c0d964dc2b9ee5c18d (diff)
downloadltc4000e-61f3fdbdf405d4da548b735c66a8196415b4693d.tar
ltc4000e-61f3fdbdf405d4da548b735c66a8196415b4693d.tar.gz
ltc4000e-61f3fdbdf405d4da548b735c66a8196415b4693d.tar.bz2
ltc4000e-61f3fdbdf405d4da548b735c66a8196415b4693d.tar.xz
ltc4000e-61f3fdbdf405d4da548b735c66a8196415b4693d.zip
Fix cabinet detection
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
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 = {}