Keep version.rs as tools/gen_version_consts.py writes it

The file is generated from the pinned version lock, and test_gen_version_consts
checks JAVA_VERSION against it; deleting constants by hand breaks the next
regeneration and that test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-23 15:07:38 +02:00
parent 173a55e608
commit 5ca16b97fc
+4
View File
@@ -11,6 +11,10 @@ pub const PROTOCOL_VERSION: i32 = 777;
pub const DATA_VERSION: i32 = 5023;
/// `WorldVersion.packVersion(PackType.CLIENT_RESOURCES)`: (major, minor).
pub const RESOURCE_PACK_FORMAT: (i64, i64) = (97, 1);
/// `WorldVersion.packVersion(PackType.SERVER_DATA)`: (major, minor).
pub const DATA_PACK_FORMAT: (i64, i64) = (121, 0);
/// The Java major version the game runs on.
pub const JAVA_VERSION: u32 = 25;
/// `WorldVersion.stable()`: false for snapshots and pre-releases.
pub const STABLE: bool = true;
/// `WorldVersion.buildTime()` as `Date.toString()` prints it in UTC (`/version`).