summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua14
1 files changed, 5 insertions, 9 deletions
diff --git a/init.lua b/init.lua
index ac62799..c91afd7 100644
--- a/init.lua
+++ b/init.lua
@@ -59,18 +59,14 @@ settings.difficult = {
}
--- Intllib
-local S
-if minetest.get_modpath("intllib") then
- S = intllib.Getter()
-else
- S = function(s) return s end
-end
-crops.intllib = S
-
local worldpath = minetest.get_worldpath()
local modpath = minetest.get_modpath(minetest.get_current_modname())
+-- Load support for intllib.
+local S, NS = dofile(modpath .. "/intllib.lua")
+crops.intllib = S
+
+
dofile(modpath .. "/crops_settings.txt")
if io.open(worldpath .. "/crops_settings.txt", "r") == nil then