forked from profectus/Profectus
Set modVersion 🤦
This commit is contained in:
parent
2d624f8da9
commit
b8e498250b
1 changed files with 1 additions and 0 deletions
|
@ -116,6 +116,7 @@ export async function loadSave(playerObj: Partial<PlayerData>): Promise<void> {
|
||||||
playerObj.time = Date.now();
|
playerObj.time = Date.now();
|
||||||
if (playerObj.modVersion !== projInfo.versionNumber) {
|
if (playerObj.modVersion !== projInfo.versionNumber) {
|
||||||
fixOldSave(playerObj.modVersion, playerObj);
|
fixOldSave(playerObj.modVersion, playerObj);
|
||||||
|
playerObj.modVersion = projInfo.versionNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object.assign(player, playerObj);
|
Object.assign(player, playerObj);
|
||||||
|
|
Loading…
Reference in a new issue