diff --git a/init.lua b/init.lua index c8d4bfd..d5dd0b7 100644 --- a/init.lua +++ b/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" diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..d3162ad --- /dev/null +++ b/mod.conf @@ -0,0 +1 @@ +name = toolranks