diff --git a/bot.user.js b/bot.user.js index 2047db2a..aa93d42c 100644 --- a/bot.user.js +++ b/bot.user.js @@ -933,8 +933,8 @@ var scheduler = window.scheduler = (function() { opt.foodAccelSize = 60; opt.foodRoundSize = 5; } - if (lengthGroup != this.lastLengthGroup) { - lengthGroup != this.lastLengthGroup; + if (lengthGroup !== this.lastLengthGroup) { + this.lastLengthGroup = lengthGroup; // No need to update UI yet. // userInterface.onPrefChange(); } @@ -983,8 +983,8 @@ var scheduler = window.scheduler = (function() { window.setAcceleration(1); bot.currentFood = { - x:prey.xx, - y:prey.yy + x: prey.xx, + y: prey.yy }; window.goalCoordinates = bot.currentFood;