From af402c56a568c4a0b32895aeeb70e94ddf33a272 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 5 Feb 2015 10:51:34 +0100 Subject: [PATCH] also avoid facedir setting for plantlike, raillike and firelike to avoid clashes if paramtype is used internally in the engine for something else --- homedecor/handlers/registration.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/homedecor/handlers/registration.lua b/homedecor/handlers/registration.lua index 1db815e..b6ad5e6 100644 --- a/homedecor/handlers/registration.lua +++ b/homedecor/handlers/registration.lua @@ -56,7 +56,14 @@ function homedecor.register(name, def) or (def.node_box and "nodebox") def.paramtype = def.paramtype or "light" - if not def.drawtype == "glasslike_framed" then + + -- avoid facedir for some drawtypes as they might be used internally for something else + -- even if undocumented + if not (def.drawtype == "glasslike_framed" + or def.drawtype == "raillike" + or def.drawtype == "plantlike" + or def.drawtype == "firelike") then + def.paramtype2 = def.paramtype2 or "facedir" end