Skip to content

Fix a tag stocking input bus crash with invalid syntax in one of the fields#25

Merged
NegaNote merged 3 commits intoNegaNote:mainfrom
TeamDimensional:fix/stocking-bus-crash
Feb 8, 2026
Merged

Fix a tag stocking input bus crash with invalid syntax in one of the fields#25
NegaNote merged 3 commits intoNegaNote:mainfrom
TeamDimensional:fix/stocking-bus-crash

Conversation

@Wizzerinus
Copy link
Contributor

@Wizzerinus Wizzerinus commented Feb 7, 2026

Currently, if invalid syntax is entered in the tag stocking input bus, and any item appears in the ME network that looks like it could match the expression, the server crashes:

crash-2026-02-07_16.18.40-server.txt

Curiously, the following syntax forge:dusts/(redstone|iron), which works for Tag Storage Bus, is invalid, because it is tokenized as ["forge:dusts/", "(", "redstone", "|", "iron", ")"] and parsed as ["forge:dusts/", "redstone", "iron", Operator(OR)], which leaves the stack interpreter at depth of 2.

This PR fixes the server crash, and also makes it so invalid syntax is clearly displayed in the bus UI.

image

@NegaNote NegaNote merged commit 6f9333c into NegaNote:main Feb 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants