mirror of
https://github.com/minetest/minetest_game.git
synced 2024-11-16 15:00:18 +01:00
Fix
This commit is contained in:
parent
91f965fcc7
commit
fbe2bb9785
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user