mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-19 12:35:52 -04:00
Fix last commit causing entity names to render wrongly
This commit is contained in:
parent
1c00b428ce
commit
ad21af6c53
@ -197,12 +197,12 @@ namespace ClassicalSharp {
|
||||
public static bool ValidColCode(string text, int i) {
|
||||
if (i >= text.Length) return false;
|
||||
char c = text[i];
|
||||
return c < '\xFF' && Cols[c].A > 0;
|
||||
return c <= '\xFF' && Cols[c].A > 0;
|
||||
}
|
||||
|
||||
/// <summary> Returns whenever the given character is a valid colour code. </summary>
|
||||
public static bool ValidColCode(char c) {
|
||||
return c < '\xFF' && Cols[c].A > 0;
|
||||
return c <= '\xFF' && Cols[c].A > 0;
|
||||
}
|
||||
|
||||
public static bool EmptyText(string text) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user