Merge branch 'master' into feat/postgresql-database

# Conflicts:
#	pom.xml
This commit is contained in:
P0nk
2023-03-02 18:40:27 +01:00
2 changed files with 17 additions and 16 deletions

View File

@@ -71,8 +71,9 @@ public class ByteBufOutPacket implements OutPacket {
@Override
public void writeString(String value) {
writeShort((short) value.length());
writeBytes(value.getBytes(CharsetConstants.CHARSET));
byte[] bytes = value.getBytes(CharsetConstants.CHARSET);
writeShort(bytes.length);
writeBytes(bytes);
}
@Override