Skip to content
Snippets Groups Projects
Commit 92a82bb3 authored by Blank_Alt's avatar Blank_Alt Committed by Pregmodder
Browse files

Resync version number

parent 554a5696
No related branches found
No related tags found
No related merge requests found
...@@ -2,5 +2,5 @@ App.Version = { ...@@ -2,5 +2,5 @@ App.Version = {
base: "0.10.7.1", // The vanilla version the mod is based off of, this should never be changed. base: "0.10.7.1", // The vanilla version the mod is based off of, this should never be changed.
pmod: "3.8.0", pmod: "3.8.0",
commitHash: null, commitHash: null,
release: 2000 release: 1100 // When gettting close to 2000, please remove the check located within the onLoad() function defined at line five of src/js/eventHandlers.js.
}; };
...@@ -4,6 +4,9 @@ App.EventHandlers = function() { ...@@ -4,6 +4,9 @@ App.EventHandlers = function() {
*/ */
function onLoad(save) { function onLoad(save) {
const v = save.state.history[0].variables; const v = save.state.history[0].variables;
if (v.releaseID === 2000) {
v.releaseID = 1100;
}
if (v.releaseID > App.Version.release) { if (v.releaseID > App.Version.release) {
console.error("Save game version problem. Loaded : " + v.releaseID + ", above expected:" + App.Version.release); // eslint-disable-line no-console console.error("Save game version problem. Loaded : " + v.releaseID + ", above expected:" + App.Version.release); // eslint-disable-line no-console
throw new Error("The save you're attempting to load was created with the game version newer than one you are running. Please download the latest game version."); throw new Error("The save you're attempting to load was created with the game version newer than one you are running. Please download the latest game version.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment