something!

This commit is contained in:
sirjonasxx 2021-07-04 18:05:28 +02:00
parent 46c336353f
commit 168ae36b86

View File

@ -42,7 +42,7 @@ public class PacketStringUtils {
m -> toString(ByteBuffer.allocate(4).putInt(Integer.parseInt(m.group(1))).array()));
packet = replaceAll(packet, "\\{l:(-?[0-9]+)}",
m -> toString(ByteBuffer.allocate(8).putLong(Integer.parseInt(m.group(1))).array()));
m -> toString(ByteBuffer.allocate(8).putLong(Long.parseLong(m.group(1))).array()));
packet = replaceAll(packet, "\\{d:(-?[0-9]*\\.[0-9]*)}",
m -> toString(ByteBuffer.allocate(8).putDouble(Double.parseDouble(m.group(1))).array()));