From 21c9c3cee622868bfff51249bdb7782f6ffe5744 Mon Sep 17 00:00:00 2001 From: tobspr Date: Wed, 7 Oct 2020 19:31:11 +0200 Subject: [PATCH] Fix belt path epsilon --- src/js/core/config.js | 2 +- src/js/game/belt_path.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/core/config.js b/src/js/core/config.js index 53510f17..57224b6a 100644 --- a/src/js/core/config.js +++ b/src/js/core/config.js @@ -59,7 +59,7 @@ export const globalConfig = { undergroundBeltMaxTilesByTier: [5, 9], - readerAnalyzeIntervalSeconds: G_IS_DEV ? 3 : 10, + readerAnalyzeIntervalSeconds: 10, buildingSpeeds: { cutter: 1 / 4, diff --git a/src/js/game/belt_path.js b/src/js/game/belt_path.js index b162f09f..eb55d613 100644 --- a/src/js/game/belt_path.js +++ b/src/js/game/belt_path.js @@ -1111,7 +1111,7 @@ export class BeltPath extends BasicSerializableObject { isFirstItemProcessed = false; this.spacingToFirstItem += clampedProgress; - if (remainingVelocity < 0.01) { + if (remainingVelocity < 1e-7) { break; } }