From c86416cf79b2b817dbce185e8226dcb92d862fce Mon Sep 17 00:00:00 2001 From: Sense101 <67970865+Sense101@users.noreply.github.com> Date: Thu, 20 Jan 2022 19:48:03 +0000 Subject: [PATCH] fix minor issues --- src/js/game/game_system_manager.js | 2 +- src/js/game/hub_goals.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/game/game_system_manager.js b/src/js/game/game_system_manager.js index f39089a6..0239abf7 100644 --- a/src/js/game/game_system_manager.js +++ b/src/js/game/game_system_manager.js @@ -145,7 +145,7 @@ export class GameSystemManager { // Order is important! // IMPORTANT: Item acceptor must be before the belt, because it may not tick after the belt - // has put in the item into the acceptor animqation, otherwise its off + // has put in the item into the acceptor animation, otherwise its off add("itemAcceptor", ItemAcceptorSystem); add("belt", BeltSystem); diff --git a/src/js/game/hub_goals.js b/src/js/game/hub_goals.js index 1064ad55..c1b2a4e4 100644 --- a/src/js/game/hub_goals.js +++ b/src/js/game/hub_goals.js @@ -571,7 +571,7 @@ export class HubGoals extends BasicSerializableObject { */ getProcessingSpeed(processorType) { const time = this.getProcessingTime(processorType); - if (time == 0) { + if (!time) { return this.getBeltBaseSpeed(); } return 1 / time;