Skip to content

Commit

Permalink
Round player position
Browse files Browse the repository at this point in the history
  • Loading branch information
Emojigit committed Jul 2, 2024
1 parent 01c571b commit 43f02ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pos.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ minetest.register_chatcommand("area_pos1", {
local pos
local player = minetest.get_player_by_name(name)
if player then
pos = player:get_pos()
pos = vector.round(player:get_pos())
end
local found, _, x_str, y_str, z_str = param:find(
"^(~?-?%d*)[, ](~?-?%d*)[, ](~?-?%d*)$")
Expand Down Expand Up @@ -84,7 +84,7 @@ minetest.register_chatcommand("area_pos2", {
local pos
local player = minetest.get_player_by_name(name)
if player then
pos = player:get_pos()
pos = vector.round(player:get_pos())
end
local found, _, x_str, y_str, z_str = param:find(
"^(~?-?%d*)[, ](~?-?%d*)[, ](~?-?%d*)$")
Expand Down

0 comments on commit 43f02ba

Please sign in to comment.