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

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
some-du6eandClaude Opus 5.5 committed 2026-11-01 15:58:35 -06:00
1 parent e4e5f05b40
commit d4565803b4
2 files changed
+2 -2

No files matched your search

@@ -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;
+1 -1
View File
@@ -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);