summaryrefslogtreecommitdiff
path: root/gui.lua
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-04-04 23:01:50 +0100
committerrubenwardy <rw@rubenwardy.com>2018-04-04 23:05:25 +0100
commit7f156db0df8a77793635a32db5aee474a5c26eea (patch)
treec672080994e228bf781f6d4c9b95c101224484ae /gui.lua
parent0017a174bd12101cbb5fd537151a368d1e261756 (diff)
Add check for nyancat mod before registering the award
Fixes #44
Diffstat (limited to 'gui.lua')
-rw-r--r--gui.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/gui.lua b/gui.lua
index a6d6147..35fde59 100644
--- a/gui.lua
+++ b/gui.lua
@@ -39,10 +39,13 @@ function awards.get_formspec(name, to, sid)
local def = awards.registered_awards[item.name]
if def and def.secret and not item.got then
- formspec = formspec .. "label[1,2.75;"..minetest.formspec_escape(S("(Secret Award)")).."]"..
- "image[1,0;3,3;awards_unknown.png]"
+ formspec = formspec .. "label[1,2.75;"..
+ minetest.formspec_escape(S("(Secret Award)")).."]"..
+ "image[1,0;3,3;awards_unknown.png]"
if def and def.description then
- formspec = formspec .. "textarea[0.25,3.25;4.8,1.7;;"..minetest.formspec_escape(S("Unlock this award to find out what it is."))..";]"
+ formspec = formspec .. "textarea[0.25,3.25;4.8,1.7;;"..
+ minetest.formspec_escape(
+ S("Unlock this award to find out what it is."))..";]"
end
else
local title = item.name