summaryrefslogtreecommitdiff
path: root/builtin/common/misc_helpers.lua
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-01-24 16:26:15 +0000
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-03-13 23:56:05 +0100
commitc42c53fccf87a3819ca78de52f8f20c47c4fbb9f (patch)
tree223bb0b18e989cfe7eb8f7d712bd606976be2c77 /builtin/common/misc_helpers.lua
parent2c19d51409ca903021e0b508e5bc15299c4e51dc (diff)
downloadminetest-c42c53fccf87a3819ca78de52f8f20c47c4fbb9f.tar.gz
minetest-c42c53fccf87a3819ca78de52f8f20c47c4fbb9f.tar.bz2
minetest-c42c53fccf87a3819ca78de52f8f20c47c4fbb9f.zip
[CSM] Add local formspecs. (#5094)
Diffstat (limited to 'builtin/common/misc_helpers.lua')
-rw-r--r--builtin/common/misc_helpers.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/common/misc_helpers.lua b/builtin/common/misc_helpers.lua
index c2dc7514d..70b23600a 100644
--- a/builtin/common/misc_helpers.lua
+++ b/builtin/common/misc_helpers.lua
@@ -606,7 +606,9 @@ if INIT == "mainmenu" then
return nil
end
+end
+if INIT == "client" or INIT == "mainmenu" then
function fgettext_ne(text, ...)
text = core.gettext(text)
local arg = {n=select('#', ...), ...}
@@ -636,4 +638,3 @@ if INIT == "mainmenu" then
return core.formspec_escape(fgettext_ne(text, ...))
end
end
-