Skip to content

Commit 0133fe5

Browse files
committed
Latest XenoBot version restriction
1 parent b45b7f8 commit 0133fe5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/001-constants.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
local MINIMUM_XENO_VERSION = 1169
12
local LIB_REVISION = '{{VERSION}}'
23
local LIB_CONFIG = [[{{CONFIG}}]]
34
local FOLDER_SETTINGS_PATH = '..\\Settings\\'

src/015-main.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ local function init()
3838
end
3939

4040
-- Only allow XenoBot Binary
41-
if not isXenoBotBinary() then
42-
print('You are using an older version of XenoBot. Update to XenoBot Binary to run this script.')
41+
if getXenoVersion() < MINIMUM_XENO_VERSION then
42+
print('You are using an older version of XenoBot. Update to the latest version of XenoBot to run this script.')
4343
return
4444
end
4545

0 commit comments

Comments
 (0)