summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/api.lua b/api.lua
index 23dd6d4..1ab19fc 100644
--- a/api.lua
+++ b/api.lua
@@ -1,3 +1,9 @@
+local S
+if intllib then
+ S = intllib.Getter()
+else
+ S = function(s) return s end
+end
-- Create detached creative inventory after loading all mods
minetest.after(0.01, function()