From f0d2a2ae741f0319ff66e7e04cfb5dfdb13c2f54 Mon Sep 17 00:00:00 2001 From: Kacpherek Date: Mon, 26 Oct 2026 15:02:43 +0100 Subject: [PATCH] Satisfy clippy --- crates/horizon-client/src/mobs/piglin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/horizon-client/src/mobs/piglin.rs b/crates/horizon-client/src/mobs/piglin.rs index 155d53d2f..6bf0aa096 100644 --- a/crates/horizon-client/src/mobs/piglin.rs +++ b/crates/horizon-client/src/mobs/piglin.rs @@ -234,7 +234,7 @@ fn hoglin_repellent(m: &mut Mob, w: &MobWorld) { m.extra.ints[1] = m.ai.last_hurt_by_time; m.extra.ints[0] = 0; } - if m.age.wrapping_add(m.id) % 20 == 0 { + if m.age.wrapping_add(m.id).is_multiple_of(20) { m.extra.repellent = find_repellent(m, w); } if m.extra.ints[0] <= 0 && m.extra.repellent.is_some() {