Use the mob level event that main already has
This commit is contained in:
@@ -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]);
|
||||
|
||||
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user