From 2c4da0b88a29c74b2990efe40e8f26ed6ddac9f9 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 4 Apr 2018 15:35:56 +0100 Subject: Add luacheck --- api.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'api.lua') diff --git a/api.lua b/api.lua index af5e405..b3253ef 100644 --- a/api.lua +++ b/api.lua @@ -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 -- cgit v1.2.3