diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -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 |