Fixed selling with block buying #627

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

No files matched your search

+1 -1
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);
}
};