3 Commits

Author SHA1 Message Date
2a2f068a05 Merge branch 'master' of yunohost:nalc/minetest-toolranks 2019-09-28 23:23:39 +02:00
Argyle
ea5426316e Crash fix - check if description is nil before trying to search it. (#3) 2019-03-15 00:13:16 +00:00
lisacvuk
5f87854323 Create mod.conf
#4
2019-03-14 09:29:17 +00:00
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