return full stack if has privs to take

master
MisterE123 2021-02-16 23:16:49 -05:00
parent bf865287db
commit 6a2367a6a4
1 changed files with 1 additions and 1 deletions

View File

@ -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,