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 boiler structure causing a ClassCastException #9

Closed
wants to merge 1 commit into from

Conversation

Lyfts
Copy link
Member

@Lyfts Lyfts commented Nov 19, 2024

partitionBy feeds the element into a defer element which does not play nice with IMultiblockInfoContainer and will cause an incorrect cast. This accomplishes the same thing without causing the aforementioned issue.

Closes: GTNewHorizons/GT-New-Horizons-Modpack#16421

@Lyfts Lyfts requested review from Glease and a team November 19, 2024 17:58
@Glease
Copy link
Contributor

Glease commented Nov 20, 2024

This doesn't feel like the right way to fix it.

The problem comes from blockrenderer using the wrong context object, and this PR tries to hide the issue by making the structure not use the context object. This is at best a bandaid fix. It works, but uh if there is any alternative we could try I wouldn't merge this.

@Lyfts
Copy link
Member Author

Lyfts commented Nov 20, 2024

Ah okay, with that info I see a nice and simple way to fix it in blockrenderer.

@Lyfts Lyfts closed this Nov 20, 2024
@Dream-Master Dream-Master deleted the boiler-fix branch November 23, 2024 15:27
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.

Crash when right clicking Railcraft boiler in NEI multiblock preview
2 participants