diff --git a/G-Earth/src/main/java/gearth/services/packet_representation/PacketStringUtils.java b/G-Earth/src/main/java/gearth/services/packet_representation/PacketStringUtils.java index 1732900..4c1fc8e 100644 --- a/G-Earth/src/main/java/gearth/services/packet_representation/PacketStringUtils.java +++ b/G-Earth/src/main/java/gearth/services/packet_representation/PacketStringUtils.java @@ -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()));