Fixed selling with block buying #627

This commit is contained in:
Daniël van Noord
2021-03-09 21:02:19 +01:00
parent 5cd266b91f
commit 2835438e8e
2 changed files with 2 additions and 2 deletions

View File

@@ -170,7 +170,7 @@ CM.Main.ReplaceNative = function () {
* If the options is 1 (on) bulkPrice is under cookies you can't buy the building.
*/
Game.ClickProduct = function (what) {
if (!CM.Options.BulkBuyBlock || Game.ObjectsById[what].bulkPrice < Game.cookies) {
if (!CM.Options.BulkBuyBlock || (Game.ObjectsById[what].bulkPrice < Game.cookies || Game.buyMode === -1)) {
CM.Backup.ClickProduct(what);
}
};