drop: count fix
This commit is contained in:
parent
14aa5df586
commit
59f1e5ddc7
@ -66,8 +66,9 @@ function on_sensor_enter(index, oid)
|
|||||||
local stack = item.stack_size(dropitem.id)
|
local stack = item.stack_size(dropitem.id)
|
||||||
local sum = dropitem.count + odrop.count
|
local sum = dropitem.count + odrop.count
|
||||||
if sum <= stack then
|
if sum <= stack then
|
||||||
dropitem.count = sum
|
dropitem.count = 0
|
||||||
other:despawn()
|
odrop.count = sum
|
||||||
|
entity:despawn()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user