diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-04-04 23:01:50 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-04-04 23:05:25 +0100 |
commit | 7f156db0df8a77793635a32db5aee474a5c26eea (patch) | |
tree | c672080994e228bf781f6d4c9b95c101224484ae /gui.lua | |
parent | 0017a174bd12101cbb5fd537151a368d1e261756 (diff) |
Add check for nyancat mod before registering the award
Fixes #44
Diffstat (limited to 'gui.lua')
-rw-r--r-- | gui.lua | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |