From 1b0e45835c19489d498cb901c0ab8027d0bade81 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 26 May 2017 23:32:00 +0200 Subject: [PATCH] Reset range of 0 bow to make it work in itemframe --- mods/ITEMS/mcl_throwing/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_throwing/init.lua b/mods/ITEMS/mcl_throwing/init.lua index fed973184..f1ec45f49 100644 --- a/mods/ITEMS/mcl_throwing/init.lua +++ b/mods/ITEMS/mcl_throwing/init.lua @@ -100,7 +100,7 @@ minetest.register_tool("mcl_throwing:bow", { The higher the charge, the faster the arrow will go and the higher the damage. A successful hit deals 1-5 HP of damage."]], inventory_image = "mcl_throwing_bow.png", stack_max = 1, - range = 0, -- Pointing range to 0 to prevent punching with bow :D + -- Range not set to 0 (unlike the others) so it can be placed into item frames on_place = powerup_function("mcl_throwing:bow_0"), on_secondary_use = powerup_function("mcl_throwing:bow_0"), groups = {weapon=1,weapon_ranged=1}, @@ -111,7 +111,7 @@ minetest.register_tool("mcl_throwing:bow_0", { _doc_items_create_entry = false, inventory_image = "mcl_throwing_bow_0.png", stack_max = 1, - range = 0, + range = 0, -- Pointing range to 0 to prevent punching with bow :D groups = {not_in_creative_inventory=1, not_in_craft_guide=1}, on_place = powerup_function("mcl_throwing:bow_1"), on_secondary_use = powerup_function("mcl_throwing:bow_1"),