Files
horizon-airdef/crates/horizon-core/src/lib.rs
T
Ludovic Marie 558d140fca Compute Math.sin/cos/pow/log10 as HotSpot does on the host architecture
Rust's float functions use the platform libm, and vanilla's own Math
results differ between x86-64 (Intel stubs, close to glibc) and AArch64
(fdlibm, with sin/cos evaluated using fused multiply-adds). jmath picks
the same implementation HotSpot uses on the machine, so options, the
world border's alpha and RandomPos match vanilla on an Apple silicon Mac
as well as on Linux.

The vanilla protocol client no longer records the game-time sync sent
every 20 ticks: whether one arrives before the first chunk batch depends
on when the client joined.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:05:34 +02:00

21 lines
508 B
Rust

//! Horizon's initial simulation primitives, targeting Minecraft Java Edition 26.3.
//!
//! This is not a playable game. Differential checks cover only the operations
//! listed in docs/rust-parity.md; the rest of vanilla remains unimplemented.
#![forbid(unsafe_code)]
pub mod biome;
pub mod carving;
pub mod density;
pub mod geometry;
pub mod jmath;
pub mod noise;
pub mod paletted;
pub mod position;
pub mod random;
pub mod storage;
pub mod text;
pub mod ticks;
pub const VANILLA_VERSION: &str = "26.3";