Update init.lua

This commit is contained in:
VitaliyShar 2022-08-13 16:10:43 +03:00 committed by GitHub
parent a45a063b6a
commit 79f4a32559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -35,11 +35,7 @@ local function rotate_and_place(itemstack, placer, pointed_thing)
local vec = vector.subtract(p1, placer_pos)
param2 = minetest.dir_to_facedir(vec)
if math.abs(vec.z) <= 0.5 and math.abs(vec.x) <= 0.5 and vec.y < 0 and p0.y == p1.y then
if param2 == 0 then param2 = 2
elseif param2 == 2 then param2 = 0
elseif param2 == 1 then param2 = 3
elseif param2 == 3 then param2 = 1
end
param2 = (param2 + 2) % 4
end
end