return full stack if has privs to take
parent
bf865287db
commit
6a2367a6a4
2
init.lua
2
init.lua
|
@ -84,7 +84,7 @@ end,
|
|||
allow_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||
local has, missing = minetest.check_player_privs(player:get_player_name(), {areas = true})
|
||||
if has or not(minetest.is_protected(pos, player:get_player_name())) then
|
||||
return 1
|
||||
return stack:get_count()
|
||||
end
|
||||
return -1
|
||||
end,
|
||||
|
|
Loading…
Reference in New Issue