From 0e23d1ef89fd32017c3a4c74f9cb96a3d1e2fc38 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 26 May 2017 23:27:11 +0200 Subject: [PATCH] Allow to use bow w/o arrow in Creative Mode --- 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 6a12793b33..fed973184f 100644 --- a/mods/ITEMS/mcl_throwing/init.lua +++ b/mods/ITEMS/mcl_throwing/init.lua @@ -83,7 +83,8 @@ local powerup_function = function(nextbow) end end - if get_arrow(placer) ~= nil then + -- Check for arrow or Creative Mode + if minetest.setting_getbool("creative_mode") or get_arrow(placer) ~= nil then local wear = itemstack:get_wear() itemstack:replace(nextbow) itemstack:set_wear(wear)