diff --git a/src/js/game/components/belt.js b/src/js/game/components/belt.js index dcac6ecb..ebb0c4ef 100644 --- a/src/js/game/components/belt.js +++ b/src/js/game/components/belt.js @@ -78,7 +78,7 @@ export class BeltComponent extends Component { * @param {BaseItem} item */ takeItem(item, leftoverProgress = 0.0) { - if (G_IS_DEV) { + if (G_IS_DEV && !globalConfig.debug.disableBeltAsserts) { assert( this.sortedItems.length === 0 || leftoverProgress <= this.sortedItems[0][0] - globalConfig.itemSpacingOnBelts + 0.001, diff --git a/translations/base-en.yaml b/translations/base-en.yaml index b224e906..e2fe034c 100644 --- a/translations/base-en.yaml +++ b/translations/base-en.yaml @@ -718,6 +718,10 @@ settings: title: Assert / Disable GetTile Asserts description: >- Speed ups the game at the cost of not checking obvious things. + debug_disableBeltAsserts: + title: Assert / Disable Belt Asserts + description: >- + Speed ups the game at the cost of not checking obvious things. keybindings: title: Keybindings