Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stabilizer block check for Node Linker. #32

Merged
merged 2 commits into from
Apr 22, 2024

Conversation

AbdielKavash
Copy link
Member

@AbdielKavash AbdielKavash commented Apr 22, 2024

The Node Linking Device is supposed to be stabilized by a block of Ichorium placed above, preventing it from exploding when its instability gets too high. However, the check was implemented wrong (comparing ItemStacks does not work, as the class does not define an equals method).

This PR fixes it by comparing the Block instead. Additionally, the correct Block is cached at initialization, so that an ore dictionary query is not needed every tick.

Currently there is only one block of ichorium (matching blockIchorium in the ore dictionary) in the pack. If there is ever any reason to add more (for example, Chisel variants), this check needs to be adjusted so that it accepts any of them. With this PR, the first entry from the ore dictionary is always selected as the only valid stabilizer block.

Thanks to @crzymn777 from discord for reporting this.

@AbdielKavash AbdielKavash requested a review from a team April 22, 2024 08:14
Copy link

@Alastors Alastors left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's always been so weird that it uses ichorium instead of at least having an intermediary block as well for a reduced stabilizer but shrug

@AbdielKavash AbdielKavash requested a review from Alastors April 22, 2024 08:24
@Dream-Master Dream-Master merged commit 123c940 into GTNewHorizons:master Apr 22, 2024
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.

3 participants