allow set account to 0 too

pretty sure i was done this fix, but someone tend to undo fixes and have broken code over and over again
This commit is contained in:
iSentrie
2022-12-08 19:03:11 +02:00
committed by GitHub
parent 684752c8ae
commit 4416953334
+1 -1
View File
@@ -187,7 +187,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
print(('[^1ERROR^7] Tried To Set Account ^5%s^0 For Player ^5%s^0 To An Invalid Number -> ^5%s^7'):format(accountName, self.playerId, money))
return
end
if money > 0 then
if money >= 0 then
local account = self.getAccount(accountName)
if account then