Skip to content

Commit

Permalink
major bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
GlorifiedPig committed Dec 20, 2020
1 parent 4652c38 commit 4f1acc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lua/autorun/sh_glorifiedleveling_autoincluder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ GlorifiedLeveling = GlorifiedLeveling or {
Perks = {
Enum = {}
},
Version = "2.2.3"
Version = "2.2.4"
}

print( "[GlorifiedLeveling] This server is running version " .. GlorifiedLeveling.Version .. "." )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ end
function GlorifiedLeveling.SetPlayerSteamIDLevel( steamID, level )
if not ValidationChecksSteamID( steamID, level ) then return end
local ply = player.GetBySteamID64( steamID )
if ply then GlorifiedLeveling.SetPlayerLevel( ply, level ) end
if ply then GlorifiedLeveling.SetPlayerLevel( ply, level ) return end
level = tonumber( level )
level = math.Round( level )
level = math.Clamp( level, 1, GlorifiedLeveling.Config.MAX_LEVEL )
Expand Down Expand Up @@ -104,7 +104,7 @@ end
function GlorifiedLeveling.AddPlayerSteamIDLevels( steamID, levels )
if not ValidationChecksSteamID( steamID, levels ) then return end
local ply = player.GetBySteamID64( steamID )
if ply then GlorifiedLeveling.AddPlayerLevels( ply, levels ) end
if ply then GlorifiedLeveling.AddPlayerLevels( ply, levels ) return end
levels = tonumber( levels )
levels = math.Round( levels )
levels = math.Clamp( levels, 1, GlorifiedLeveling.Config.MAX_LEVEL )
Expand Down

0 comments on commit 4f1acc2

Please sign in to comment.