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:
@@ -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`).
|
||||
|
||||
Reference in New Issue
Block a user