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 entity models: let the chest arm auto-deref its shapes (clippy)

some-du6ea2f0a5baa882
diff --git a/crates/horizon-client-render/src/block_entity_render.rs b/crates/horizon-client-render/src/block_entity_render.rs
index 44d627df7..5ab00586c 100644
--- a/crates/horizon-client-render/src/block_entity_render.rs
+++ b/crates/horizon-client-render/src/block_entity_render.rs
@@ -1441,9 +1441,9 @@ impl BlockEntityRenderer {
// them; copper chests have no CEM name and draw vanilla's chest.
let shapes: &BlockEntityShapes =
if matches!(block.as_str(), "chest" | "trapped_chest" | "ender_chest") {
- &*shapes
+ &shapes
} else {
- &*self.vanilla
+ &self.vanilla
};
let (own, chest) = match (block.as_str(), part) {
("trapped_chest", ChestPart::Single) => ("trapped_chest", "chest"),