forked from mtcontrib/homedecor_modpack
also avoid facedir setting for plantlike, raillike and firelike to avoid clashes if paramtype is used internally in the engine for something else
This commit is contained in:
parent
a19f3753b9
commit
af402c56a5
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user