This commit is contained in:
2025-03-08 07:08:34 -06:00
parent 44b5e8cfd9
commit 4b6b209188
2 changed files with 24 additions and 25 deletions
+10 -10
View File
@@ -21,7 +21,7 @@ public enum CharacterTitle {
CSR_3(255, 0, 0, "CCR"),
CSR_4(251, 181, 13, "CCR"),
DEVELOPER(166, 153, 114, "Programmer"),
PVE(0, 255, 0, ""),
PVE(0, 255, 0, "PvE"),
QA(88, 250, 244, "GIRLFRIEND");
int headerLength, footerLength;
@@ -72,10 +72,10 @@ public enum CharacterTitle {
char[] chars = firstName.toCharArray();
if (smallString)
writer.put((byte) (chars.length + this.headerLength));
writer.put((byte) (chars.length + this.footerLength));
else
writer.putInt(chars.length + this.headerLength);
writer.putBB(header);
writer.putInt(chars.length + this.footerLength);
writer.putBB(footer);
for (char c : chars) {
writer.putChar(c);
@@ -101,21 +101,21 @@ public enum CharacterTitle {
char[] chars = lastName.toCharArray();
if (smallString)
writer.put((byte) (chars.length + this.footerLength));
writer.put((byte) (chars.length + this.headerLength));
else
writer.putInt(chars.length + this.footerLength);
writer.putInt(chars.length + this.headerLength);
for (char c : chars) {
writer.putChar(c);
}
writer.putBB(footer);
writer.putBB(header);
} else {
if (smallString)
writer.put((byte) this.footerLength);
writer.put((byte) this.headerLength);
else
writer.putInt(this.footerLength);
writer.putBB(footer);
writer.putInt(this.headerLength);
writer.putBB(header);
}
}