From ac7430e02fe0d8dfcef08ab4eda4877241b332df Mon Sep 17 00:00:00 2001 From: Uberi Date: Tue, 10 Dec 2013 01:47:32 -0500 Subject: Version information is now available via the API. --- worldedit/init.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'worldedit') diff --git a/worldedit/init.lua b/worldedit/init.lua index 6d3efe4..a6361b5 100644 --- a/worldedit/init.lua +++ b/worldedit/init.lua @@ -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()) -- cgit v1.2.3