summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-11-09 02:42:36 +0100
committerWuzzy <almikes@aol.com>2016-11-09 02:42:36 +0100
commitf4a5eb25f6e777637c3516ccd2546a7adafbaa77 (patch)
tree2d19e626f9d9be8eb8d1f90fbbd9ad8c73f64934 /init.lua
parent43da09620ed84f13e86b958e52b5c478f01f5227 (diff)
Fix mod not working with mod security and intllib
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 922b936..805ce3c 100644
--- a/init.lua
+++ b/init.lua
@@ -16,9 +16,8 @@
local S
-if (intllib) then
- dofile(minetest.get_modpath("intllib").."/intllib.lua")
- S = intllib.Getter(minetest.get_current_modname())
+if minetest.get_modpath("intllib") then
+ S = intllib.Getter()
else
S = function ( s ) return s end
end