From 3525bd65236b4dee3d6c4fd2787f7ab7f2be9868 Mon Sep 17 00:00:00 2001 From: neoapps-dev Date: Tue, 26 May 2026 17:00:22 +0300 Subject: [PATCH] bump --- decode_hex.py | 28 ---------------------------- package.json | 2 +- parse_codec.py | 25 ------------------------- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- 6 files changed, 4 insertions(+), 57 deletions(-) delete mode 100644 decode_hex.py delete mode 100644 parse_codec.py diff --git a/decode_hex.py b/decode_hex.py deleted file mode 100644 index 63439d9..0000000 --- a/decode_hex.py +++ /dev/null @@ -1,28 +0,0 @@ -import zlib - -def decode_varint(data, offset=0): - val = 0 - shift = 0 - while True: - b = data[offset] - offset += 1 - val |= (b & 0x7F) << shift - shift += 7 - if (b & 0x80) == 0: - break - return val, offset - -hex_str = "81 9b 01 78 9c ed 5b cd 92 db 44 10 9e 14 f9 71 9c 4a 41 48" -data = bytes.fromhex(hex_str.replace(" ", "")) - -uncompressed_len, offset = decode_varint(data) -compressed_data = data[offset:] - -d = zlib.decompressobj() -dec = d.decompress(compressed_data) -if dec: - pkt_id, dec_offset = decode_varint(dec) - print(f"Packet ID: {pkt_id} (0x{pkt_id:02x})") - print(f"Next bytes: {dec[dec_offset:dec_offset+10].hex()}") -else: - print("Could not decompress anything (need more bytes).") diff --git a/package.json b/package.json index b8ccd47..e9a780a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "emerald-legacy-launcher", "private": true, - "version": "1.2.1", + "version": "1.3.0", "type": "module", "scripts": { "dev": "vite", diff --git a/parse_codec.py b/parse_codec.py deleted file mode 100644 index c7672f3..0000000 --- a/parse_codec.py +++ /dev/null @@ -1,25 +0,0 @@ -import re - -with open("ignore/MCProtocolLib/protocol/src/main/java/org/geysermc/mcprotocollib/protocol/codec/MinecraftCodec.java", "r") as f: - lines = f.readlines() - -in_game = False -clientbound_index = 0 - -for line in lines: - if "ProtocolState.GAME" in line: - in_game = True - continue - - if in_game: - # Check if another state starts - if "ProtocolState." in line and "ProtocolState.GAME" not in line: - break - - if "registerClientboundPacket" in line: - # Extract the class name - m = re.search(r'registerClientboundPacket\((.*?)\.class', line) - if m: - packet_class = m.group(1) - print(f"{packet_class} -> {clientbound_index} (0x{clientbound_index:02x})") - clientbound_index += 1 diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index f444d2a..6bc70d8 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -1014,7 +1014,7 @@ checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7" [[package]] name = "emerald-legacy-launcher" -version = "1.2.1" +version = "1.3.0" dependencies = [ "base64 0.21.7", "byteorder", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 29c600c..98c075e 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "emerald-legacy-launcher" -version = "1.2.1" +version = "1.3.0" description = "A FOSS, cross-platform launcher for Minecraft Legacy Edition" authors = ["Emerald Team"] edition = "2021" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 8be4fb5..c76ac95 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "LCE Emerald Launcher", - "version": "1.2.1", + "version": "1.3.0", "identifier": "com.emerald.legacy", "build": { "beforeDevCommand": "npm run dev",