From c2d950b7c2eb6e1a948d2e0420b51470c5ab9061 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 27 May 2017 04:08:44 +0200 Subject: [PATCH] Disable digging for bow --- mods/ITEMS/mcl_throwing/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_throwing/init.lua b/mods/ITEMS/mcl_throwing/init.lua index 8b742206..f8bee63e 100644 --- a/mods/ITEMS/mcl_throwing/init.lua +++ b/mods/ITEMS/mcl_throwing/init.lua @@ -108,9 +108,10 @@ The arrow speed and damage increase with the charge level: inventory_image = "mcl_throwing_bow.png", stack_max = 1, -- Trick to disable melee damage to entities. - -- FIXME: The bows is still able to dig like the hand for some reason. :-( -- Range not set to 0 (unlike the others) so it can be placed into item frames range = 1, + -- Trick to disable digging as well + on_use = function() end, on_place = powerup_function("mcl_throwing:bow_0"), on_secondary_use = powerup_function("mcl_throwing:bow_0"), groups = {weapon=1,weapon_ranged=1},