Merge branch 'master' of yunohost:nalc/minetest-toolranks

This commit is contained in:
Sys Quatre 2019-09-28 23:23:39 +02:00
commit 2a2f068a05
2 changed files with 4 additions and 1 deletions

View File

@ -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"

1
mod.conf Normal file
View File

@ -0,0 +1 @@
name = toolranks