Skip to content

Commit

Permalink
fix(server/player): erroring out after license (#635)
Browse files Browse the repository at this point in the history
* fix(server/player): erroring out after license

* fix: undo change
  • Loading branch information
mafewtm authored Dec 5, 2024
1 parent 02484ec commit 5f2db69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function Login(source, citizenid, newData)
end

local license, license2 = GetPlayerIdentifierByType(source --[[@as string]], 'license'), GetPlayerIdentifierByType(source --[[@as string]], 'license2')
local userId = storage.fetchUserByIdentifier(license2) or storage.fetchUserByIdentifier(license)
local userId = license2 and storage.fetchUserByIdentifier(license2) or storage.fetchUserByIdentifier(license)
if not userId then
lib.print.error('User does not exist. Licenses checked:', license2, license)
return false
Expand Down

0 comments on commit 5f2db69

Please sign in to comment.