mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
10 lines
325 B
Lua
10 lines
325 B
Lua
function inventory_share_func(invid, slotid)
|
|
local blockinv = hud.get_block_inventory()
|
|
if blockinv ~= 0 then
|
|
inventory.move(invid, slotid, blockinv)
|
|
elseif rules.get("allow-content-access") then
|
|
inventory.set(invid, slotid, 0, 0)
|
|
else
|
|
inventory.move(invid, slotid, invid)
|
|
end
|
|
end
|