Skip to content

StringGauge: Unpredictable string concatenation order #109

Description

@ElShrineFox221

I'm having trouble predicting the concatenation order of StringGauge when it combines multiple input strings. To some extent, it appears to correlate with the gauge's position and the position of the gauge's block, rather than the order in which connections were created. This behavior seems to persist even across server restarts and world changes.

During my testing, I noticed that even when the block facing and relative positions of gauges are identical, different world saves produce different concatenation results.

After examining the code, I suspect the getAllValuesWithSource method might return unordered data, as it appears to use targetedBy and targetedByLinks.

I believe the StringGauge's concatenation order should be somewhat controllable by the player—perhaps through connection order or manual specification.

https://github.com/Creators-of-Create/Create/blob/mc1.21.1/dev/src/main/java/com/simibubi/create/content/logistics/factoryBoard/FactoryPanelBehaviour.java

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions