This commit is contained in:
sfan5 2022-08-17 20:33:19 +02:00 committed by GitHub
parent 91f965fcc7
commit fbe2bb9785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ local function rotate_and_place(itemstack, placer, pointed_thing)
local placer_pos = placer:get_pos()
if placer_pos then
local diff = vector.subtract(p1, placer_pos)
param2 = minetest.dir_to_facedir(vecdiff)
param2 = minetest.dir_to_facedir(diff)
-- The player places a node on the side face of the node he is standing on
if p0.y == p1.y and math.abs(diff.x) <= 0.5 and math.abs(diff.z) <= 0.5 and diff.y < 0 then
-- reverse node direction