mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +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 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue