diff --git a/pom.xml b/pom.xml
index be55b0e352..ac27148fd8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -19,24 +19,24 @@
net.server.Server
- 3.0.0-M7
- 3.2.2
- 3.4.2
+ 3.0.0-M9
+ 3.3.0
+ 3.5.0
1.7.36
- 2.18.0
- 22.2.0
- 4.1.79.Final
+ 2.20.0
+ 22.3.1
+ 4.1.89.Final
1.15
1.0
5.0.1
- 8.0.30
42.5.4
9.15.1
- 3.35.0
- 5.9.0
- 4.7.0
+ 8.0.32
+ 3.37.1
+ 5.9.2
+ 5.1.1
@@ -58,9 +58,9 @@
${HikariCP.version}
- mysql
- mysql-connector-java
- ${mysql-connector-java.version}
+ com.mysql
+ mysql-connector-j
+ ${mysql-connector-j.version}
org.postgresql
@@ -216,4 +216,4 @@
-
\ No newline at end of file
+
diff --git a/src/main/java/net/packet/ByteBufOutPacket.java b/src/main/java/net/packet/ByteBufOutPacket.java
index dbb8e75fbe..ce289603be 100644
--- a/src/main/java/net/packet/ByteBufOutPacket.java
+++ b/src/main/java/net/packet/ByteBufOutPacket.java
@@ -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