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

Add null check and missing texture for covered cable icons #512

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

Cleptomania
Copy link
Member

Somewhat fixes GTNewHorizons/GT-New-Horizons-Modpack#16075. This doesn't sort out the underlying issue, but it does add some safety to use a missing texture when it happens rather than crashing by returning a null texture.

With this fix, the behavior should be that when it occurs, fluix colored covered cables will render with a missing texture instead of their normal one, though this should only last for the time that it occurred, so in most any scenario wouldn't even be noticeable.

The underlying issue still needs investigated, but this at least makes it a bit safer by not causing a crash.

@Cleptomania Cleptomania requested a review from a team April 30, 2024 00:52
@Dream-Master Dream-Master merged commit dcb0fe8 into master Apr 30, 2024
1 check passed
@Dream-Master Dream-Master deleted the icon-null-check branch April 30, 2024 04:40
@Glease
Copy link

Glease commented Apr 30, 2024

This is an insufficient fix. We have seen it returning null in other getXXXTexture() as well.

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 on 2.6.0 involving AE2 and Angelica
4 participants