mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-23 00:40:51 +01:00
thanks 0xCC
This commit is contained in:
parent
a5f4abba80
commit
23648cf8bd
@ -39,6 +39,9 @@ public class PacketStringUtils {
|
||||
packet = replaceAll(packet, "\\{i:(-?[0-9]+)}",
|
||||
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()));
|
||||
|
||||
packet = replaceAll(packet, "\\{d:(-?[0-9]*\\.[0-9]*)}",
|
||||
m -> toString(ByteBuffer.allocate(8).putDouble(Double.parseDouble(m.group(1))).array()));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user