From 6a2367a6a41445d77c51a3500f8a4e5578465ce8 Mon Sep 17 00:00:00 2001 From: MisterE123 Date: Tue, 16 Feb 2021 23:16:49 -0500 Subject: [PATCH] return full stack if has privs to take --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 2684365..4c4170f 100644 --- a/init.lua +++ b/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,