Skip to content

Sort properties by their change interval in the state list#241

Open
BramOtte wants to merge 3 commits into
MCHPR:masterfrom
BramOtte:sorted-properties
Open

Sort properties by their change interval in the state list#241
BramOtte wants to merge 3 commits into
MCHPR:masterfrom
BramOtte:sorted-properties

Conversation

@BramOtte
Copy link
Copy Markdown
Contributor

@BramOtte BramOtte commented May 3, 2026

The state list determines which ids represent which state, not the order of the properties.
This Pull Request sorts the properties to match the state list so any code that depends on the property order to know the ID's is valid.

This currently does not effect the any implemented blocks (hence only the generator is updated) but this does fix the order for for-example the piston_head block.

Ideally we'd also do some validation in this part of the code so its easier to tell when complex_transform is necessary in gen_info.yaml.

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.

1 participant