Skip to content

Commit

Permalink
fix(commands): convert args tonumber
Browse files Browse the repository at this point in the history
- fixes 237
  • Loading branch information
AvarianKnight committed Dec 16, 2021
1 parent 5b9db46 commit 229d7f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ end)
-- TODO: Better implementation of this?
RegisterCommand('vol', function(_, args)
if not args[1] then return end
setVolume(args[1])
setVolume(tonumber(args[1]))
end)

RegisterCommand('cycleproximity', function()
Expand Down

0 comments on commit 229d7f6

Please sign in to comment.