Skip to content

Commit

Permalink
fix(server/inventory): incorrect container weight on swap
Browse files Browse the repository at this point in the history
Resolves #1552.
  • Loading branch information
thelindat committed Dec 13, 2023
1 parent 15ef6b2 commit a0f2b0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/inventory/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1687,7 +1687,7 @@ lib.callback.register('ox_inventory:swapItems', function(source, data)
return
end

Inventory.ContainerWeight(containerItem, toContainer and fromWeight or toWeight, playerInventory)
Inventory.ContainerWeight(containerItem, toContainer and toWeight or fromWeight, playerInventory)
end

if fromOtherPlayer then
Expand Down

0 comments on commit a0f2b0d

Please sign in to comment.