Skip to content

Commit

Permalink
Easy Edit 1.5.4
Browse files Browse the repository at this point in the history
- Increment version to take precedence over older versions when loading.
- Add warning to indicate this version may be tailored to a specific mod loader version.
  • Loading branch information
Lemonymous committed Sep 28, 2022
1 parent f57de7c commit 14d66e5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion easyEdit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ if skipInit then
return easyEdit
end

local VERSION = "1.5.3"
local VERSION = "1.5.4"
local MOD_LOADER_TARGET = "2.7.2"
local path = GetParentPath(...)

local function finalizeInit(self)
Expand All @@ -21,6 +22,16 @@ local function finalizeInit(self)
return
end

if self.modLoaderTarget ~= modApi.version then
LOGF(""
.."WARNING: This version of Easy Edit is specifically made for mod loader"
.."version %s, and may not work with properly with the current mod loader"
.."version %s",
tostring(self.modLoaderTarget),
tostring(modApi.version)
)
end

require(path.."debug")
require(path.."global")
require(path.."ml_fixes")
Expand Down Expand Up @@ -77,6 +88,7 @@ local isNewerVersion = false
if isNewerVersion then
easyEdit = easyEdit or {}
easyEdit.version = VERSION
easyEdit.modLoaderTarget = MOD_LOADER_TARGET
easyEdit.path = path
easyEdit.finalizeInit = finalizeInit

Expand Down

0 comments on commit 14d66e5

Please sign in to comment.