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.

OptiFine emissive textures: the lookups are Copy closures, passed by value

some-du6ed4565803b4f6
diff --git a/crates/horizon-client/src/game/armor_stands.rs b/crates/horizon-client/src/game/armor_stands.rs
index 67e82845d..ba7ed2fd8 100644
--- a/crates/horizon-client/src/game/armor_stands.rs
+++ b/crates/horizon-client/src/game/armor_stands.rs
@@ -895,7 +895,7 @@ impl Game<'_> {
.emissive
.read()
.unwrap_or_else(std::sync::PoisonError::into_inner);
- emissive.overlay(texture).and_then(&uv_of)
+ emissive.overlay(texture).and_then(uv_of)
};
let Some(wood) = uv_of("entity/armorstand/armorstand") else {
return;
diff --git a/crates/horizon-client/src/game/dragon.rs b/crates/horizon-client/src/game/dragon.rs
index b4feb1c50..bc33e623e 100644
--- a/crates/horizon-client/src/game/dragon.rs
+++ b/crates/horizon-client/src/game/dragon.rs
@@ -2760,7 +2760,7 @@ impl Game<'_> {
.read()
.unwrap_or_else(std::sync::PoisonError::into_inner)
.overlay("entity/enderdragon/dragon")
- .and_then(&sprite);
+ .and_then(sprite);
if let Some(glow) = glow.filter(|_| mask.is_none()) {
let full = horizon_client::mobs::render::FULL_BRIGHT;
horizon_client::mobs::render::draw(model, base, &poses, glow, color, full, 0, out);