don't apply a facedir to glasslike_framed to avoid the drawtype to fail drawing the frames

This commit is contained in:
Tim 2015-02-05 10:34:17 +01:00
parent 24db06a0b0
commit a19f3753b9

View File

@ -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