Fix Player Quest Data being too Large

This commit is contained in:
Kam committed 2024-03-28 18:16:17 -04:00
1 parent 0fa1d8ffa4
commit c8e1855da6
8 files changed
+95 -16

No files matched your search

+6
View File
@@ -95,6 +95,12 @@ public class Server {
buffer.writeLong((Long) ob);
else if(ob instanceof Double)
buffer.writeDouble((Double) ob);
else if (ob instanceof byte[]) {
// Write byte array length followed by bytes
byte[] byteArray = (byte[]) ob;
buffer.writeShort((short) byteArray.length);
buffer.writeBytes(byteArray);
}
else if(ob instanceof NBTTagCompound)
writeNBT(buffer, (NBTTagCompound) ob);
}