3 次程式碼提交

作者 SHA1 備註 日期
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 個檔案被更改,包括 4 行新增1 行删除

查看文件

@@ -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 一般檔案
查看文件

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