mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
add function inventory.move_range
This commit is contained in:
parent
f6ab0de5af
commit
0ba0584c5d
4 changed files with 52 additions and 2 deletions
|
|
@ -4,7 +4,9 @@ function inventory_share_func(invid, slotid)
|
|||
inventory.move(invid, slotid, blockinv)
|
||||
elseif rules.get("allow-content-access") then
|
||||
inventory.set(invid, slotid, 0, 0)
|
||||
elseif slotid < 10 then
|
||||
inventory.move_range(invid, slotid, invid, 10)
|
||||
else
|
||||
inventory.move(invid, slotid, invid)
|
||||
inventory.move_range(invid, slotid, invid, 0, 9)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue