Use the mob level event that main already has

This commit is contained in:
Kacpherek
2026-10-26 23:04:35 +01:00
parent 29754b857d
commit 5e27fd3421
2 changed files with 0 additions and 16 deletions
@@ -1288,15 +1288,6 @@ impl Game<'_> {
MobEvent::Vibration { from, to, ticks } => {
self.mob_vibration_particle(from, to, ticks)
}
MobEvent::LevelEvent { id, pos, data } => {
self.level_events
.push(horizon_world::level::LevelEvent::LevelEvent {
id,
pos: horizon_core::position::BlockPos::new(pos[0], pos[1], pos[2]),
data,
});
self.process_level_events()?;
}
MobEvent::DigParticles { at } => self.warden_dig_particles(at),
MobEvent::BlockBreakEffect { pos, block } => {
let state = self.world.block(block[0], block[1], block[2]);
-7
View File
@@ -1195,13 +1195,6 @@ pub enum MobEvent {
to: [f64; 3],
ticks: i32,
},
/// `Level.levelEvent` from a mob (a faceplanted fox's 2001, the snow's
/// crumbs).
LevelEvent {
id: i32,
pos: [i32; 3],
data: i32,
},
/// The crumbs of the block under a digging or emerging warden.
DigParticles {
at: [f64; 3],