Fix buying with block protection & exact cookies

The check was wrong, since it wouldn't allow you to buy a building
for the exact amount of cookies in your bank, for example when
you're trying to buy your first cursor after clicking exactly 15 times.
This commit is contained in:
Costas Basdekis authored and Daniël van Noord committed 2023-03-15 09:04:21 +01:00
1 parent 54bb9f793b
commit 76d531a5b0
5 files changed
+5 -5

No files matched your search

@@ -87,7 +87,7 @@ export default function ReplaceNative() {
Game.ClickProduct = function (what) {
if (
!Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.BulkBuyBlock ||
Game.ObjectsById[what].bulkPrice < Game.cookies ||
Game.ObjectsById[what].bulkPrice <= Game.cookies ||
Game.buyMode === -1
) {
BackupFunctions.ClickProduct(what);