add function inventory.move_range

This commit is contained in:
MihailRis
2024-11-26 09:32:53 +03:00
parent f6ab0de5af
commit 0ba0584c5d
4 changed files with 52 additions and 2 deletions
+3 -1
View File
@@ -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