From bc28f617ca0079e6462b8e7d7a56de20bc95b725 Mon Sep 17 00:00:00 2001 From: Juraj Vajda Date: Thu, 4 Jan 2024 18:09:44 -0500 Subject: [PATCH] Do not allow arrows where quiver should be (inventory) and create fake quiver with arrow --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 58cb1ef..a7c8af6 100644 --- a/init.lua +++ b/init.lua @@ -126,7 +126,7 @@ minetest.register_allow_player_inventory_action(function(player, action, invento else return 0 end - elseif action == 'move' and inventory_info.from_list == 'x_bows:arrow_inv' then + elseif action == 'move' and inventory_info.from_list == 'x_bows:arrow_inv' and inventory_info.to_list ~= 'x_bows:quiver_inv' then local stack = inventory:get_stack(inventory_info.from_list, inventory_info.from_index) if minetest.get_item_group(stack:get_name(), 'arrow') ~= 0 then