2021-06-30 01:53:14 +00:00
|
|
|
--- WorldEditAdditions-Core
|
|
|
|
-- @module worldeditadditions_core
|
|
|
|
-- @release 1.13
|
|
|
|
-- @copyright 2021 Starbeamrainbowlabs and VorTechnix
|
|
|
|
-- @license Mozilla Public License, 2.0
|
|
|
|
-- @author Starbeamrainbowlabs and VorTechnix
|
|
|
|
|
2022-05-19 00:45:36 +00:00
|
|
|
-- local temp = true
|
|
|
|
-- if temp then return end
|
2022-05-16 22:32:40 +00:00
|
|
|
-- This mod isn't finished yet, so it will not be executed for now.
|
2021-06-30 01:53:14 +00:00
|
|
|
|
|
|
|
|
2022-05-16 22:32:40 +00:00
|
|
|
local modpath = minetest.get_modpath("worldeditadditions_core")
|
|
|
|
|
|
|
|
worldeditadditions_core = {
|
|
|
|
modpath = modpath,
|
|
|
|
registered_commands = {},
|
2022-05-17 00:03:58 +00:00
|
|
|
-- Storage for per-player node limits before safe_region kicks in.
|
|
|
|
-- TODO: Persist these to disk.
|
|
|
|
safe_region_limits = {},
|
|
|
|
-- The default limit for new players on the number of potential nodes changed before safe_region kicks in.
|
|
|
|
safe_region_limit_default = 100000,
|
2022-05-16 22:32:40 +00:00
|
|
|
}
|
|
|
|
|
2022-05-19 01:31:01 +00:00
|
|
|
local wea_c = worldeditadditions_core
|
|
|
|
wea_c.register_command = dofile(modpath.."/core/register_command.lua")
|
|
|
|
wea_c.fetch_command_def = dofile(modpath.."/core/fetch_command_def.lua")
|
2021-06-30 01:53:14 +00:00
|
|
|
|
2022-05-16 22:32:40 +00:00
|
|
|
|
|
|
|
-- Initialise WorldEdit stuff if the WorldEdit mod is not present
|
2022-05-17 00:04:51 +00:00
|
|
|
if minetest.global_exists("worldedit") then
|
2022-05-19 01:31:01 +00:00
|
|
|
dofile(wea_c.modpath.."/core/integrations/worldedit.lua")
|
2022-05-16 22:32:40 +00:00
|
|
|
else
|
2022-05-19 01:31:01 +00:00
|
|
|
dofile(wea_c.modpath.."/core/integrations/noworldedit.lua")
|
2022-05-17 00:04:38 +00:00
|
|
|
end
|