Fixed break when Temple is not loaded

This commit is contained in:
Daniël van Noord committed 2021-04-04 22:15:05 +02:00
1 parent 90be659c13
commit 86678b0871
4 files changed
+4 -3

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ import {
* @returns {number} CM.Sim.cookiesPs - Game.cookiesPs The bonus cps and the price of the change
*/
export default function CalculateChangeGod(god, slot) {
if (!Game.Objects.Temple.minigameLoaded) return 0;
CopyData();
const { minigame } = Game.Objects.Temple;
const CurrentSlot = minigame.godsById[god].slot;