Version information is now available via the API.

This commit is contained in:
Uberi
2013-12-10 01:47:32 -05:00
parent b3ba6f2433
commit ac7430e02f
3 changed files with 20 additions and 5 deletions

View File

@ -1,3 +1,7 @@
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())