summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Zhang <azhang9@gmail.com>2013-08-06 16:28:05 -0400
committerAnthony Zhang <azhang9@gmail.com>2013-08-06 16:28:05 -0400
commit03327a767d98192e7480f6c063c693fd5b206144 (patch)
treeaa9ee39e9276157b6d4161b153d5a3f94d4d17e8
parent8bd5db51b2cedd0f1b6f545d11b66bae0cff8a41 (diff)
Add version checker since so many people are confused about which version to use.1.0
-rw-r--r--worldedit/init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/worldedit/init.lua b/worldedit/init.lua
index 02c3494..1f16a5f 100644
--- a/worldedit/init.lua
+++ b/worldedit/init.lua
@@ -1,3 +1,5 @@
+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())
local loadmodule = function(path)