Skip to content

Commit

Permalink
fix(server): serial numbers would regenerate after dropping weapon
Browse files Browse the repository at this point in the history
#261 fixes
issue created with latest patches
  • Loading branch information
outsider31000 committed Jan 20, 2025
1 parent 7a66d09 commit ebc6b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/services/inventoryService.lua
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ function InventoryService.addWeapon(source, weaponId)
local weaponname <const> = userWeapons[weaponId]:getName()
local ammo <const> = { ["nothing"] = 0 }
local components <const> = { ["nothing"] = 0 }
InventoryAPI.registerWeapon(_source, weaponname, ammo, components, weaponcomps)
InventoryAPI.registerWeapon(_source, weaponname, ammo, components, weaponcomps, nil, weaponId)
InventoryAPI.deleteWeapon(_source, weaponId)
end

Expand Down

0 comments on commit ebc6b0f

Please sign in to comment.