Skip to content

Conversation

@dinkelspiel
Copy link

CraftServer.getGameVersion() recursively calls itself which results in a stack overflow. I'd like for this value to be dynamic based on the actual game version in the future but since it isn't exposed in NMS theres no trivial way to do it (and the rest of the code uses the constants) so I've just made it return the gameVersion variable for now.

@notdevcody
Copy link
Collaborator

notdevcody commented May 23, 2025

It's probably no biggie, but I'm a bit worried about the variable name change. Should any plugin try to access this directly as a workaround (through reflection), it will break.

@dinkelspiel
Copy link
Author

Oh true didn't think of that. I'll revert it.

@notdevcody notdevcody merged commit 543d76f into Moresteck:develop May 26, 2025
2 checks 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.

2 participants