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:
parent
aa5d25fe2f
commit
ebf721061f
@ -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,
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user