1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-12-27 03:00:40 +01:00
Minetest-WorldEdit/worldedit/init.lua

26 lines
795 B
Lua
Raw Normal View History

worldedit = worldedit or {}
worldedit.version = {major=1, minor=0}
worldedit.version_string = "1.0"
assert(minetest.get_voxel_manip, string.rep(">", 300) .. "HEY YOU! YES, YOU OVER THERE. THIS VERSION OF WORLDEDIT REQUIRES MINETEST 0.4.8 OR LATER! YOU HAVE AN OLD VERSION." .. string.rep("<", 300))
local path = minetest.get_modpath(minetest.get_current_modname())
local loadmodule = function(path)
local file = io.open(path)
if not file then
return
end
file:close()
return dofile(path)
end
loadmodule(path .. "/manipulations.lua")
loadmodule(path .. "/primitives.lua")
loadmodule(path .. "/visualization.lua")
loadmodule(path .. "/serialization.lua")
loadmodule(path .. "/code.lua")
2013-04-28 19:08:09 +02:00
loadmodule(path .. "/compatibility.lua")
2013-08-29 02:28:49 +02:00
print("[MOD] WorldEdit loaded!")