From feca7cf694d04bb27842ac453b6206443915d720 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 14 Feb 2017 22:13:54 +0100 Subject: [PATCH] Replace bow_0 and bow_1 after shoot --- mods/mcl_throwing/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/mcl_throwing/init.lua b/mods/mcl_throwing/init.lua index 834c57758..0d060b75f 100644 --- a/mods/mcl_throwing/init.lua +++ b/mods/mcl_throwing/init.lua @@ -78,6 +78,7 @@ minetest.register_tool("mcl_throwing:bow_0", { on_secondary_use = powerup_function("mcl_throwing:bow_1"), on_use = function(itemstack, user, pointed_thing) local wear = itemstack:get_wear() + itemstack:replace("mcl_throwing:bow") itemstack:add_wear(wear) if player_shoot_arrow(itemstack, user, pointed_thing) then if not minetest.setting_getbool("creative_mode") then @@ -97,6 +98,7 @@ minetest.register_tool("mcl_throwing:bow_1", { on_secondary_use = powerup_function("mcl_throwing:bow_2"), on_use = function(itemstack, user, pointed_thing) local wear = itemstack:get_wear() + itemstack:replace("mcl_throwing:bow") itemstack:add_wear(wear) if player_shoot_arrow(itemstack, user, pointed_thing) then if not minetest.setting_getbool("creative_mode") then