1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-11-16 15:00:18 +01:00
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

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