mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-02-12 02:49:20 +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
|
* @param {BaseItem} item
|
||||||
*/
|
*/
|
||||||
takeItem(item, leftoverProgress = 0.0) {
|
takeItem(item, leftoverProgress = 0.0) {
|
||||||
if (G_IS_DEV) {
|
if (G_IS_DEV && !globalConfig.debug.disableBeltAsserts) {
|
||||||
assert(
|
assert(
|
||||||
this.sortedItems.length === 0 ||
|
this.sortedItems.length === 0 ||
|
||||||
leftoverProgress <= this.sortedItems[0][0] - globalConfig.itemSpacingOnBelts + 0.001,
|
leftoverProgress <= this.sortedItems[0][0] - globalConfig.itemSpacingOnBelts + 0.001,
|
||||||
|
|||||||
@ -718,6 +718,10 @@ settings:
|
|||||||
title: Assert / Disable GetTile Asserts
|
title: Assert / Disable GetTile Asserts
|
||||||
description: >-
|
description: >-
|
||||||
Speed ups the game at the cost of not checking obvious things.
|
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:
|
keybindings:
|
||||||
title: Keybindings
|
title: Keybindings
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user