1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-02-11 18:39:21 +00:00

debug.disableBeltAsserts

This commit is contained in:
Dimava 2020-06-01 19:26:22 +03:00
parent aa5d25fe2f
commit ebf721061f
2 changed files with 5 additions and 1 deletions

View File

@ -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,

View File

@ -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