mirror of
https://github.com/minetest-mods/throwing.git
synced 2025-01-09 01:30:26 +01:00
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:
parent
b9c78c92b2
commit
edeba9de8b
2
init.lua
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user