Use toolranks 1.2 api
This commit is contained in:
parent
6fcc5a5a1e
commit
4450600952
2
init.lua
2
init.lua
|
@ -450,7 +450,7 @@ function throwing.register_bow(name, def)
|
||||||
|
|
||||||
if enable_toolranks then
|
if enable_toolranks then
|
||||||
def.original_description = def.original_description or def.description
|
def.original_description = def.original_description or def.description
|
||||||
def.description = toolranks.create_description(def.description, 0, 1)
|
def.description = toolranks.create_description(def.description)
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_tool(name, def)
|
minetest.register_tool(name, def)
|
||||||
|
|
Loading…
Reference in New Issue