Add luacheck

This commit is contained in:
rubenwardy
2018-04-04 15:35:56 +01:00
parent 81aa0f1c82
commit 2c4da0b88a
4 changed files with 41 additions and 15 deletions

View File

@ -46,8 +46,8 @@ function awards.load()
return {}
end
function awards.register_trigger(name, func)
awards.trigger_types[name] = func
function awards.register_trigger(name, tfunc)
awards.trigger_types[name] = tfunc
awards.on[name] = {}
awards['register_on_'..name] = function(func)
table.insert(awards.on[name], func)
@ -380,7 +380,7 @@ function awards.getFormspec(name, to, sid)
formspec = formspec .. "textarea[0.5,2.7;4.8,1.45;;" ..
string.format(status, minetest.formspec_escape(title)) ..
";]"
if def and def.icon then
formspec = formspec .. "image[1,0;3,3;" .. def.icon .. "]"
end