mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
drop: count fix
This commit is contained in:
parent
14aa5df586
commit
59f1e5ddc7
1 changed files with 3 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue