Respect charset when loading scripts

This commit is contained in:
P0nk
2021-09-08 18:46:16 +02:00
parent 1803699086
commit c841e9952b
8 changed files with 11 additions and 10 deletions

View File

@@ -83,7 +83,7 @@ class ByteBufInPacketTest {
void readString() {
final String writtenString = "You have gained experience (+3200)";
byteBuf.writeShortLE(writtenString.length());
byte[] writtenStringBytes = writtenString.getBytes(CharsetConstants.PACKET_CHARSET);
byte[] writtenStringBytes = writtenString.getBytes(CharsetConstants.CHARSET);
byteBuf.writeBytes(writtenStringBytes);
String readString = inPacket.readString();