Armadillo: a baby's brush is not taken on the client

Armadillo.brushOffScute returns false for a baby, so the brush falls through
to FAIL (rolled up) or Mob.mobInteract's PASS instead of ending the click.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Ludovic MarieandClaude Opus 5.5 committed 2026-11-04 15:08:41 +01:00
1 parent b2ebcee304
commit 38c31cac5d
1 file changed
+3 -1
@@ -87,7 +87,9 @@ impl Game<'_> {
item == "minecraft:water_bucket"
|| !m.extra.age_locked && m.kind.food.iter().any(|f| f.as_str() == item)
}
Species::Armadillo => item == "minecraft:brush",
// Armadillo.brushOffScute fails on a baby, so its brush falls
// through to FAIL (scared) or Mob.mobInteract's PASS.
Species::Armadillo => item == "minecraft:brush" && !baby,
// ZombieVillager.mobInteract: CONSUME for a golden apple.
Species::ZombieVillager => item == "minecraft:golden_apple",
// Creeper.mobInteract: CREEPER_IGNITERS.