ammo saving

otherwise it doesn't update correctly and after relogging you lose ammo if it was reloaded at least once
This commit is contained in:
iSentrie
2022-10-05 10:29:19 +03:00
committed by GitHub
parent c8f062b4ff
commit 1caf553046
+1 -3
View File
@@ -407,9 +407,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
local loadoutNum, weapon = self.getWeapon(weaponName)
if weapon then
if ammoCount < weapon.ammo then
weapon.ammo = ammoCount
end
weapon.ammo = ammoCount
end
end