1
0
mirror of https://github.com/lisacvuk/minetest-toolranks.git synced 2025-07-13 13:30:26 +02:00

fix tool description for old and unused tools (#14)

This commit is contained in:
OgelGames
2020-06-20 22:41:30 +10:00
committed by GitHub
parent 17994ed8db
commit d000b4b20f
2 changed files with 15 additions and 12 deletions

View File

@ -13,7 +13,7 @@ If so, to support this mod, add this code to your mod, after your tool's code:
if minetest.get_modpath("toolranks") then
minetest.override_item("mymod:mytool", {
original_description = "My Tool",
description = toolranks.create_description("My Tool", 0, 1),
description = toolranks.create_description("My Tool"),
after_use = toolranks.new_afteruse
})
end