From 632f7d44c30f70fae00401256de7b29eab53e0e7 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sun, 7 Jun 2020 19:44:12 +0200 Subject: Changed Modules, New Features --- init.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 842cab8..ecf1b3a 100755 --- a/init.lua +++ b/init.lua @@ -18,12 +18,8 @@ end) minetest.register_privilege("skycraft", "Use Skycraft commands") -local modules = { - common = {"common", "random" , "request"}, - main = {"commands", "flower_spread", "lobby", "lucky_block", "mapgen", "money", "plots", "ranks", "spawns", "tpa", "trade"}, - onload = {"lava_cooling", "lobby_load", "nether_portal", "sapling_mutation", "shop", "spawn", "void"} -} local modpath = minetest.get_modpath("skycraft") +local modules = minetest.deserialize(io.open(modpath .. "/modules.txt", "r"):read()) local function load_module(m) for _, f in pairs(modules[m]) do dofile(modpath .. "/src/" .. m .. "/" .. f .. ".lua") -- cgit v1.2.3