Skip to content

Commit

Permalink
fix horizontal rotation direction
Browse files Browse the repository at this point in the history
  • Loading branch information
OgelGames committed Jun 19, 2023
1 parent 78788e3 commit 49895c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modes/basic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ local function handler(pos, node, player, pointed, stack)
local dir = minetest.yaw_to_dir(player:get_look_horizontal())
if math.abs(dir.x) > math.abs(dir.z) then
axis = "z"
direction = math.sign(dir.x) * direction
else
axis = "x"
direction = math.sign(dir.z) * direction * -1
end
end
if pt == "facedir" or pt == "colorfacedir" then
Expand Down

0 comments on commit 49895c4

Please sign in to comment.