forked from mtcontrib/minetest-toolranks
Merge branch 'master' of yunohost:nalc/minetest-toolranks
This commit is contained in:
commit
2a2f068a05
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