mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-07 11:06:11 -10:00
OptiFine entity models: let the chest arm auto-deref its shapes (clippy)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
c3911b7608
commit
a2f0a5baa8
1 file changed
+2
-2
@@ -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"),
|
||||
|
||||
Reference in new issue
Block a user