Skip to content

Conversation

@Allmoz
Copy link
Contributor

@Allmoz Allmoz commented Oct 23, 2025

Links can be attached to contraptions in chains, causing trees of dependencies of the order they need to be deleted when the contraption is assembled. This change makes so the information of that dependency (the insertion order to the HashMap) is not lost by using a LinkedHashMap, and it is used to remove the blocks in the proper order by inverting that LinkedHashMap before the iterations. This fixes #9214.

{7B9DCFB8-9410-4C18-92AC-CD033CF7A80D} fancy links shapes :D

It's a proposal cose I only used data structures of "java.util.". Any HashMap that guarantees that the iteration order will be the insertion one and it can be iterated in reverse would be a nice candidate, even if its a custom one.

@VoidLeech VoidLeech added pr type: fix PR fixes a bug pr flag: simple PR has minimal changes labels Oct 27, 2025
@Attack8
Copy link
Contributor

Attack8 commented Oct 28, 2025

Same comment as here

@Allmoz
Copy link
Contributor Author

Allmoz commented Oct 28, 2025

Thanks, i didn't know that about keywords. Fixes #9214
(... original post....)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr flag: simple PR has minimal changes pr type: fix PR fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants