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 Java major version strings for Java 10 #5

Merged
merged 1 commit into from
Aug 12, 2018

Conversation

fridtjof
Copy link
Contributor

Since Java 10, Java version strings are longer due to the jump to two digits. I replaced all the substring(0,3) occurences with a small function that returns everything before the second dot.
This way, we'll be safe even when Java 100 comes around ;)

@fridtjof fridtjof mentioned this pull request Aug 12, 2018
@smbarbour smbarbour changed the base branch from master to develop August 12, 2018 18:09
Copy link
Member

@smbarbour smbarbour left a comment

Choose a reason for hiding this comment

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

Looks fine, though Minecraft doesn't support versions newer than 8 anyway

@smbarbour smbarbour merged commit dfce0d0 into MCUpdater:develop Aug 12, 2018
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.

2 participants