Change default allow_shot function to allow items that throw itself to be thrown by default

This seems obvious, but wasn't the case
This commit is contained in:
upsilon 2020-02-16 18:38:49 +01:00
parent b9c78c92b2
commit edeba9de8b
No known key found for this signature in database
GPG Key ID: A80DAE1F266E1C3C
1 changed files with 1 additions and 1 deletions

View File

@ -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