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