mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-07-04 13:47:12 -04:00
Fix
This commit is contained in:
parent
91f965fcc7
commit
fbe2bb9785
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue