Ignore mob step game events in the game, whose sculk layer tracks steps

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-13 01:15:26 +02:00
parent 7fdbdcb3cb
commit 8c784eaaa6
@@ -709,6 +709,9 @@ impl Game<'_> {
MobEvent::SoundId(name, at, volume, pitch) => {
self.audio.play(&name, Some(at), volume, pitch)
}
// The sculk layer tracks the game's steps itself
// (`entity_motion_events`).
MobEvent::GameEvent { .. } => {}
MobEvent::AttackPlayer(amount, from) => {
self.mob_hits_player(amount, from, "minecraft:mob_attack")
}