drop: count fix

This commit is contained in:
clasher113 2025-07-20 12:19:34 +03:00
parent 14aa5df586
commit 59f1e5ddc7

View File

@ -66,8 +66,9 @@ function on_sensor_enter(index, oid)
local stack = item.stack_size(dropitem.id)
local sum = dropitem.count + odrop.count
if sum <= stack then
dropitem.count = sum
other:despawn()
dropitem.count = 0
odrop.count = sum
entity:despawn()
end
end
end