Skip to content

Minecraft: Java Edition 26.3 rewritten from scratch in Rust, checked against vanilla with 281 differential harnesses. Get it with the Horizon launcher.

Fusion layouts: clippy's identity_op in a test

some-du6e442ac7ab4186
diff --git a/crates/horizon-optifine/src/fusion/layout.rs b/crates/horizon-optifine/src/fusion/layout.rs
index d550bbb6a..d21d63a13 100644
--- a/crates/horizon-optifine/src/fusion/layout.rs
+++ b/crates/horizon-optifine/src/fusion/layout.rs
@@ -386,7 +386,7 @@ mod tests {
// template or GIF shows it, so this pins `overlay_tiles`' own choice, the pieces for
// up-right-down and right-down-left.
assert_eq!(cells(U | R | D | L), [13, 6, 1, 8]);
- assert_eq!(cells(0xff & !UL), [9, 4]);
+ assert_eq!(cells(!UL), [9, 4]);
// A lone corner each.
assert_eq!(cells(DL), [2]);
assert_eq!(cells(UL), [14]);