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 NNC for value of fluid vein to avoid NPE when updating maps from lower versions #1375

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

Fodoth-jinzi89
Copy link
Contributor

What

Added an NonNullCheck to FluidVeinWorldEntry.java. We noted that the key of fluid vein is checked by now, but the value is ignored, causing a crash when entering maps from a lower version of GTCEu, e.g. 1.2.1 (we used this version for the proper work of parallel hatch, which is very important but cannot work properly in 1.2.3, and the problem is hopefully already fixed in 1.2.3.a).
A detailed stack trace of the crash is provided:
Crash Report

Implementation Details

A version converter of former maps' fluid vein data may be developed, instead of this straightforward fix.

Outcome

The crash is avoided, and former maps can be entered and played.

Potential Compatibility Issues

This may cause a lose of former maps' fluid vein data.

Added NNC for value of fluid vein to avoid NPE when updating maps from lower versions
@Fodoth-jinzi89 Fodoth-jinzi89 requested a review from a team as a code owner June 4, 2024 15:52
@Fodoth-jinzi89
Copy link
Contributor Author

The vein data is not lost in my map.

@YoungOnionMC YoungOnionMC merged commit b319ef6 into GregTechCEu:1.20.1 Jun 6, 2024
2 checks passed
screret pushed a commit that referenced this pull request Jun 10, 2024
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