mirror of
https://github.com/minetest-mods/throwing.git
synced 2025-01-09 09:40:26 +01:00
parent
82c9932ed9
commit
5542c62405
8
init.lua
8
init.lua
@ -381,8 +381,14 @@ function throwing.register_bow(name, def)
|
||||
minetest.register_tool(name, def)
|
||||
|
||||
if def.itemcraft then
|
||||
-- Check for an override name
|
||||
-- because an ``output = ":name"'' can't exist in a recipe
|
||||
local outpout_name = name
|
||||
if name:sub(1,1) == ":" then
|
||||
output_name = name:sub(2)
|
||||
end
|
||||
minetest.register_craft({
|
||||
output = name,
|
||||
output = output_name,
|
||||
recipe = {
|
||||
{"farming:cotton", def.itemcraft, ""},
|
||||
{"farming:cotton", "", def.itemcraft},
|
||||
|
Loading…
Reference in New Issue
Block a user