mirror of
https://github.com/lisacvuk/minetest-toolranks.git
synced 2025-07-06 10:00:37 +02:00
Merge branch 'master' of yunohost.local:mtcontrib/minetest-toolranks into nalc-1.2-dev
This commit is contained in:
4
init.lua
4
init.lua
@ -10,7 +10,9 @@ toolranks.colors = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function toolranks.get_tool_type(description)
|
function toolranks.get_tool_type(description)
|
||||||
if string.find(description, "Pickaxe") then
|
if not description then
|
||||||
|
return "tool"
|
||||||
|
elseif string.find(description, "Pickaxe") then
|
||||||
return "pickaxe"
|
return "pickaxe"
|
||||||
elseif string.find(description, "Axe") then
|
elseif string.find(description, "Axe") then
|
||||||
return "axe"
|
return "axe"
|
||||||
|
Reference in New Issue
Block a user