version number and version check added
This commit is contained in:
parent
65f0ffc087
commit
feeb44d7da
9
init.lua
9
init.lua
@ -38,6 +38,15 @@
|
||||
|
||||
hyperloop = {}
|
||||
|
||||
-- Version for compatibility checks, see history
|
||||
hyperloop.version = 2.05
|
||||
|
||||
if minetest.global_exists("techage") and techage.version < 0.06 then
|
||||
minetest.log("error", "[hyperloop] Hyperloop requires techage version 0.06 or newer!")
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
if minetest.get_translator ~= nil then
|
||||
hyperloop.S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user