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()
|
local placer_pos = placer:get_pos()
|
||||||
if placer_pos then
|
if placer_pos then
|
||||||
local diff = vector.subtract(p1, placer_pos)
|
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
|
-- 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
|
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
|
-- reverse node direction
|
||||||
|
|
Loading…
Reference in New Issue