-
Notifications
You must be signed in to change notification settings - Fork 144
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: minecraft vanilla top level description text and mixed cases #599
Conversation
What if description.text is a value but also has description.extra? |
Yep, maybe we should get rid of those two conditions (last 2 ifs), and just |
The best solution here is to just do what Minecraft is doing internally, but I don't think we have access to that at all nor will they provide that, I'll have to look into it. |
Well we can just use the second if condition for both cases as we just need to set name to description.text and if description.extra does exist continue to append the text. I think that would satisfy both cases without being a breaking change. I did have a working impl for the velocity fix but you got the PR in sooner 😅 |
Apologies about the formatting, but as a reference I just did an example in this branch based on the current code. |
Hey, I reviewed this again and I ended up doing what I mentioned in my first reply. |
3d637c4
to
9fdb1f4
Compare
Something about this change appears to not work as expected. I use gamedig as part of some automated tests to confirm that gameservers start properly. Currently I've been using the "Name" field to test against. It has started duplicating the server name in the name field (the name should just be "LinuxGSM"):
I'll likely refactor my tests so that the server name doesn't matter, but I thought I would let you know just in case this is unintended. |
Closes #598