Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit c369665

Browse files
committed
fix(server/inventory): typo in drop creation
1 parent 6b7920d commit c369665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/inventory/server.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,7 @@ local function dropItem(source, playerInventory, fromData, data)
15211521
fromData.count -= data.count
15221522
fromData.weight = Inventory.SlotWeight(Items(fromData.name), fromData)
15231523

1524-
if fromData.count < 0 then
1524+
if fromData.count < 1 then
15251525
fromData = nil
15261526
else
15271527
toData.metadata = table.clone(toData.metadata)

0 commit comments

Comments
 (0)