From b2a124dd8308e067869e0992a73b4b88df97ab64 Mon Sep 17 00:00:00 2001
From: BobFred7 <57379622+BobFred7@users.noreply.github.com>
Date: Fri, 01 May 2020 21:24:12 +0200
Subject: [PATCH] Deal with lava cans wasting lava (#532)

---
 technic_worldgen/init.lua |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/technic_worldgen/init.lua b/technic_worldgen/init.lua
index 7e80fd3..2f36920 100644
--- a/technic_worldgen/init.lua
+++ b/technic_worldgen/init.lua
@@ -1,12 +1,11 @@
 local modpath = minetest.get_modpath("technic_worldgen")
 
-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")
 dofile(modpath.."/oregen.lua")
 dofile(modpath.."/crafts.lua")

--
Gitblit v1.8.0