2024-09-24 11:55:50 +02:00

18 lines
717 B
Lua

worldedit_bigschems = {}
worldedit_bigschems.modpath = {}
worldedit_bigschems.modpath.worldedit_bigschems = minetest.get_modpath('worldedit_bigschems')
local ver = {major=0, minor=1}
worldedit_bigschems.version = ver
worldedit_bigschems.version_string = string.format("%d.%d", ver.major, ver.minor)
dofile(worldedit_bigschems.modpath.worldedit_bigschems.."/utils.lua")
if minetest.settings:get_bool("worldedit_bigschems_run_tests") or minetest.settings:get_bool("worldedit_bigschems_commands_run_tests") or minetest.settings:get_bool("worldedit_bigschems_undo_run_tests") then
dofile(worldedit_bigschems.modpath.worldedit_bigschems .. "/test/init.lua")
minetest.after(0, worldedit_bigschems.run_tests)
end