mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-19 16:50:31 +01:00
50802588f0
Conflicts: mods/WorldEdit/worldedit/init.lua mods/WorldEdit/worldedit/manipulations.lua mods/WorldEdit/worldedit_commands/init.lua mods/WorldEdit/worldedit_commands/safe.lua mods/compassgps/README.md mods/mobs/api.lua mods/mobs/chicken.lua mods/mobs/cow.lua This branch was completly f*cked up, we couldn't find a way to update it without throwing piles of merge conflicts, even with patches. Runes are defaultly disabled. The README.md file will be updated, as well as many files in the repository
44 lines
1.3 KiB
Lua
Executable File
44 lines
1.3 KiB
Lua
Executable File
--- Worldedit.
|
|
-- @module worldedit
|
|
-- @release 1.1
|
|
-- @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
|
|
|
|
worldedit = {}
|
|
worldedit.version = {1, 1, major=1, minor=1}
|
|
worldedit.version_string = table.concat(worldedit.version, ".")
|
|
|
|
if not minetest.get_voxel_manip then
|
|
local err_msg = "This version of WorldEdit requires Minetest 0.4.8 or later! You have an old version."
|
|
minetest.log("error", string.rep("#", 128))
|
|
minetest.log("error", err_msg)
|
|
minetest.log("error", string.rep("#", 128))
|
|
error(err_msg)
|
|
end
|
|
|
|
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")
|
|
|
|
|
|
if minetest.setting_getbool("log_mods") then
|
|
print("[WorldEdit] Loaded!")
|
|
end
|