fix BB name encoding bug

This commit is contained in:
Martin Michelsen
2023-12-30 00:48:34 -08:00
parent 818204a93f
commit 8518349cce
+1 -1
View File
@@ -153,7 +153,7 @@ void PlayerVisualConfig::enforce_lobby_join_limits_for_version(Version v) {
}
this->class_flags = class_flags_for_class(this->char_class);
if (is_v4(v) && (this->name.at(0) == '\t') && (this->name.at(1) == 'J' || this->name.at(1) == 'E')) {
if (!is_v4(v) && (this->name.at(0) == '\t') && (this->name.at(1) == 'J' || this->name.at(1) == 'E')) {
this->name.encode(this->name.decode().substr(2));
}
}