Skip to content

Commit

Permalink
fix: remove local from param
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Nov 25, 2023
1 parent 3d354fb commit ef1ed79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/scripts/talkactions/gm/position.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function position.onSay(player, words, param)
end

-- Treatment for position using format "x, y, z"
local param = string.gsub(param, "%s+", "")
param = string.gsub(param, "%s+", "")
local split = param:split(",")
if split and #split == 3 then
x, y, z = tonumber(split[1]), tonumber(split[2]), tonumber(split[3])
Expand Down

0 comments on commit ef1ed79

Please sign in to comment.