From edeba9de8b4111e1dd087565f9c87ac6764fe954 Mon Sep 17 00:00:00 2001 From: upsilon Date: Sun, 16 Feb 2020 18:38:49 +0100 Subject: [PATCH] Change default allow_shot function to allow items that throw itself to be thrown by default This seems obvious, but wasn't the case --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index ed82789..bea63c6 100644 --- a/init.lua +++ b/init.lua @@ -298,7 +298,7 @@ function throwing.register_bow(name, def) if index >= player:get_inventory():get_size("main") and not def.throw_itself then return false end - return throwing.is_arrow(itemstack) + return throwing.is_arrow(itemstack) or def.throw_itself end end if not def.inventory_image then