forked from mtcontrib/minetest-toolranks
Merge branch 'master' of yunohost.local:mtcontrib/minetest-toolranks into nalc-1.2-dev
This commit is contained in:
commit
1a9996b76c
4
init.lua
4
init.lua
|
@ -10,7 +10,9 @@ toolranks.colors = {
|
|||
}
|
||||
|
||||
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"
|
||||
elseif string.find(description, "Axe") then
|
||||
return "axe"
|
||||
|
|
Loading…
Reference in New Issue
Block a user