From 41af1eddba4859e5ee3f36467253a7c192a38b4a Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 12 Nov 2020 11:37:50 +0100 Subject: [PATCH] Reset pointing range limit for bow --- mods/ITEMS/mcl_bows/bow.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/ITEMS/mcl_bows/bow.lua b/mods/ITEMS/mcl_bows/bow.lua index 9f49eb158f..eb91e484df 100644 --- a/mods/ITEMS/mcl_bows/bow.lua +++ b/mods/ITEMS/mcl_bows/bow.lua @@ -114,11 +114,9 @@ S("The speed and damage of the arrow increases the longer you charge. The regula inventory_image = "mcl_bows_bow.png", wield_scale = { x = 1.8, y = 1.8, z = 1 }, stack_max = 1, - -- Trick to disable melee damage to entities. - -- Range not set to 0 (unlike the others) so it can be placed into item frames - range = 1, + range = 4, -- Trick to disable digging as well - on_use = function() end, + on_use = function() return end, groups = {weapon=1,weapon_ranged=1}, }) @@ -157,6 +155,8 @@ for level=0, 2 do stack_max = 1, range = 0, -- Pointing range to 0 to prevent punching with bow :D groups = {not_in_creative_inventory=1, not_in_craft_guide=1}, + -- Trick to disable digging as well + on_use = function() return end, on_drop = function(itemstack, dropper, pos) reset_bow_state(dropper) itemstack:set_name("mcl_bows:bow")