From b0998a5cc42479fb651b901adb35459fc4ac7205 Mon Sep 17 00:00:00 2001 From: Donaldino7712 <100215778+Donaldino7712@users.noreply.github.com> Date: Thu, 16 May 2024 20:35:25 +0200 Subject: [PATCH] Implement fix for mobile Co-authored-by: HexaVault <44529573+HexaVault@users.noreply.github.com> --- src/core/storage/migrations.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/storage/migrations.js b/src/core/storage/migrations.js index 611d8473e..4de1644b5 100644 --- a/src/core/storage/migrations.js +++ b/src/core/storage/migrations.js @@ -100,7 +100,6 @@ export const migrations = { clearInterval(window.uiChoiceModalInterval); } }, 1000); - player.infinity = { upgradeBits: 0 }; migrations.normalizeTimespans(player); migrations.convertAutobuyerMode(player); @@ -422,7 +421,7 @@ export const migrations = { if (player.celestials.pelle.doomed) player.dilation.rebuyables[3] = 0; }, 26: player => { - delete player.infinity.upgradeBits; + if (!!player.infinity?.upgradeBits) delete player.infinity.upgradeBits; } },