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:
committed by
Daniël van Noord
parent
54bb9f793b
commit
76d531a5b0
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user