2013-08-06 22:28:05 +02:00
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 ) )
2013-05-19 01:00:12 +02:00
local path = minetest.get_modpath ( minetest.get_current_modname ( ) )
2013-03-20 22:31:00 +01:00
local loadmodule = function ( path )
2013-08-01 04:15:52 +02:00
local file = io.open ( path )
if not file then
return
2013-07-28 03:34:42 +02:00
end
2013-08-01 04:15:52 +02:00
file : close ( )
return dofile ( path )
2013-03-20 22:31:00 +01:00
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 " )