Merge branch 'master' of yunohost.local:mtcontrib/minetest-toolranks into nalc-1.2-dev

This commit is contained in:
Sys Quatre 2019-12-22 15:18:48 +01:00
commit 1a9996b76c
2 changed files with 4 additions and 1 deletions

View File

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

1
mod.conf Normal file
View File

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