Satisfy clippy

This commit is contained in:
Kacpherek
2026-10-26 15:02:43 +01:00
parent fd1d857f1b
commit f0d2a2ae74
+1 -1
View File
@@ -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() {