summaryrefslogtreecommitdiff
path: root/worldedit
diff options
context:
space:
mode:
authorUberi <azhang9@gmail.com>2013-12-10 01:47:32 -0500
committerUberi <azhang9@gmail.com>2013-12-10 01:47:32 -0500
commitac7430e02fe0d8dfcef08ab4eda4877241b332df (patch)
tree2a109e707234322ad893266094bcde1a9c54cfe5 /worldedit
parentb3ba6f2433c428af9c4068023a533341251686ec (diff)
Version information is now available via the API.
Diffstat (limited to 'worldedit')
-rw-r--r--worldedit/init.lua4
1 files changed, 4 insertions, 0 deletions
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())