1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-12-25 18:20:38 +01:00
Minetest-WorldEdit/worldedit/init.lua

41 lines
1.1 KiB
Lua
Raw Normal View History

--- Worldedit.
-- @module worldedit
2017-09-12 14:25:38 +02:00
-- @release 1.2
-- @copyright 2013 sfan5, Anthony Zhang (Uberi/Temperest), and Brett O'Donnell (cornernote).
-- @license GNU Affero General Public License version 3 (AGPLv3)
-- @author sfan5
-- @author Anthony Zang (Uberi/Temperest)
-- @author Bret O'Donnel (cornernote)
-- @author ShadowNinja
2017-09-12 14:25:38 +02:00
worldedit = {}
2017-09-12 14:25:38 +02:00
local ver = {major=1, minor=2}
worldedit.version = ver
worldedit.version_string = string.format("%d.%d", ver.major, ver.minor)
local path = minetest.get_modpath(minetest.get_current_modname())
local function load_module(path)
local file = io.open(path, "r")
if not file then return end
file:close()
return dofile(path)
end
dofile(path .. "/common.lua")
load_module(path .. "/manipulations.lua")
load_module(path .. "/primitives.lua")
load_module(path .. "/visualization.lua")
load_module(path .. "/serialization.lua")
load_module(path .. "/code.lua")
load_module(path .. "/compatibility.lua")
2016-07-04 19:57:48 +02:00
load_module(path .. "/cuboid.lua")
2018-11-23 14:08:05 +01:00
if minetest.settings:get_bool("log_mods") then
print("[WorldEdit] Loaded!")
end
2013-08-29 02:28:49 +02:00