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

Custom Chat will render in a weird way when certain characters are in player names. #6

Closed
ShellyHerself opened this issue Oct 25, 2019 · 1 comment

Comments

@ShellyHerself
Copy link

When some characters are in player names the text will move back to the beginning of the line, causing text to be overlapped.

I assume this has something to do with the converting of the text from utf-16 to utf-8 having some overlap for special characters.

I'm thinking the easiest solution would be to set a range for allowed characters and prune everything outside of that.

@SnowyMouse
Copy link
Owner

SnowyMouse commented May 12, 2020

I fixed the issue in 6ef0f68. I think at least. It was due to a sign vs unsigned comparison.
image

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

No branches or pull requests

2 participants