From 34f2894321a5c8424548fa98c2350168670aacd3 Mon Sep 17 00:00:00 2001 From: dokutan <54861821+dokutan@users.noreply.github.com> Date: Fri, 01 May 2020 21:11:53 +0200 Subject: [PATCH] Update dependencies in manual.md (#547) --- technic_worldgen/init.lua | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/technic_worldgen/init.lua b/technic_worldgen/init.lua index 73e9fc7..2f36920 100644 --- a/technic_worldgen/init.lua +++ b/technic_worldgen/init.lua @@ -1,12 +1,9 @@ local modpath = minetest.get_modpath("technic_worldgen") -technic = technic or {} -technic.worldgen = {} -if intllib then - technic.worldgen.gettext = intllib.Getter() -else - technic.worldgen.gettext = function(s) return s end -end +technic = rawget(_G, "technic") or {} +technic.worldgen = { + gettext = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end, +} dofile(modpath.."/config.lua") dofile(modpath.."/nodes.lua") -- Gitblit v1.8.0