From a19f3753b95d32bddeba758c814cc9dc6730f175 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 5 Feb 2015 10:34:17 +0100 Subject: [PATCH] don't apply a facedir to glasslike_framed to avoid the drawtype to fail drawing the frames --- homedecor/handlers/registration.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/homedecor/handlers/registration.lua b/homedecor/handlers/registration.lua index ad095432..1db815e4 100644 --- a/homedecor/handlers/registration.lua +++ b/homedecor/handlers/registration.lua @@ -51,13 +51,15 @@ end --wrapper around minetest.register_node that sets sane defaults and interprets some specialized settings function homedecor.register(name, def) - def.paramtype = def.paramtype or "light" - def.paramtype2 = def.paramtype2 or "facedir" - def.drawtype = def.drawtype or (def.mesh and "mesh") or (def.node_box and "nodebox") + def.paramtype = def.paramtype or "light" + if not def.drawtype == "glasslike_framed" then + def.paramtype2 = def.paramtype2 or "facedir" + end + local infotext = def.infotext --def.infotext = nil -- currently used to set locked refrigerator infotexts