Fix non-log node door placement orientation

This commit is contained in:
Aaron Suen 2023-10-22 22:32:13 -04:00
parent 18a3684664
commit 8836a6d409

View File

@ -128,8 +128,10 @@ nodecore.register_craft({
local param2 = 0
if def.paramtype2 == "facedir" then
local dir = vector.subtract(pt.under, pt.above)
local key = def.on_place == minetest.rotate_node
and "b" or "k"
for k, v in pairs(nodecore.facedirs) do
if vector.equals(v.b, dir) then
if vector.equals(v[key], dir) then
param2 = k
break
end