From 07e935d0bfee8d652520e8ce8a931d1512b1d280 Mon Sep 17 00:00:00 2001 From: FusselTV Date: Tue, 27 Oct 2026 10:29:53 +0100 Subject: [PATCH] Mobs: drop the unreachable second rabbit arm in mob_to_nbt #2585 and 0d496fdc8 both added a "minecraft:rabbit" arm to mob_to_nbt; the first writes RabbitType and MoreCarrotTicks, so the second is never reached and clippy -D warnings fails on main (unreachable_patterns). Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/entity_nbt.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/horizon-client/src/entity_nbt.rs b/crates/horizon-client/src/entity_nbt.rs index c65f35f5b..b2d1401da 100644 --- a/crates/horizon-client/src/entity_nbt.rs +++ b/crates/horizon-client/src/entity_nbt.rs @@ -498,10 +498,6 @@ pub fn mob_to_nbt(m: &Mob, uuid: [i32; 4], raw: Option<&Tag>) -> Tag { Tag::Int(i32::from(m.extra.variant.min(4))), ); } - // Rabbit.addAdditionalSaveData (the legacy id; 99 is the killer bunny). - "minecraft:rabbit" => { - map.insert("RabbitType".into(), Tag::Int(i32::from(m.extra.variant))); - } "minecraft:parrot" => { map.insert( "Variant".into(),