Minetest-WorldEditAdditions/worldeditadditions_core/init.lua
Starbeamrainbowlabs f984f5d7b7
Begin rewriting worldeditadditions_core
We should be able to make things a lot cleaner and more robust.
2022-05-16 23:32:40 +01:00

30 lines
818 B
Lua

--- WorldEditAdditions-Core
-- @module worldeditadditions_core
-- @release 1.13
-- @copyright 2021 Starbeamrainbowlabs and VorTechnix
-- @license Mozilla Public License, 2.0
-- @author Starbeamrainbowlabs and VorTechnix
local temp = true
if temp then return end
-- This mod isn't finished yet, so it will not be executed for now.
local modpath = minetest.get_modpath("worldeditadditions_core")
worldeditadditions_core = {
modpath = modpath,
registered_commands = {},
register_command = dofile(modpath.."/core/register_command.lua")
}
local we_c = worldeditadditions_core
-- Initialise WorldEdit stuff if the WorldEdit mod is not present
if minetest.global_exists("bonemeal") then
dofile(we_c.modpath.."/core/integrations/worldedit.lua")
else
dofile(we_c.modpath.."/core/integrations/noworldedit.lua")
end)