Skip to content

Commit

Permalink
fix(server/inventory): typo in drop creation
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Jun 5, 2023
1 parent 6b7920d commit c369665
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 @@ -1521,7 +1521,7 @@ local function dropItem(source, playerInventory, fromData, data)
fromData.count -= data.count
fromData.weight = Inventory.SlotWeight(Items(fromData.name), fromData)

if fromData.count < 0 then
if fromData.count < 1 then
fromData = nil
else
toData.metadata = table.clone(toData.metadata)
Expand Down

0 comments on commit c369665

Please sign in to comment.