This commit is contained in:
Joshua Barretto 2023-05-11 15:50:42 +01:00 committed by Maxicarlos08
parent 6adca217fe
commit 62d998252d
No known key found for this signature in database
2 changed files with 8 additions and 9 deletions

View File

@ -17,7 +17,7 @@ use common::{
consts::{MAX_MOUNT_RANGE, MAX_SPRITE_MOUNT_RANGE, SOUND_TRAVEL_DIST_PER_VOLUME},
event::EventBus,
link::Is,
mounting::{Mounting, Rider, VolumeMounting, VolumePos, VolumeRider},
mounting::{Mount, Mounting, Rider, VolumeMounting, VolumePos, VolumeRider},
outcome::Outcome,
rtsim::RtSimVehicle,
terrain::{Block, SpriteKind},

View File

@ -68,10 +68,12 @@ impl<'a> System<'a> for Sys {
read_data.light_emitter.maybe(),
read_data.groups.maybe(),
read_data.rtsim_entities.maybe(),
(
!&read_data.is_mounts,
read_data.is_riders.maybe(),
read_data.is_volume_riders.maybe(),
read_data.pet_states.maybe(),
),
)
.par_join()
.for_each_init(
@ -94,10 +96,7 @@ impl<'a> System<'a> for Sys {
light_emitter,
group,
rtsim_entity,
_,
is_rider,
is_volume_rider,
pet_state,
(_, is_rider, is_volume_rider, pet_state),
)| {
let mut event_emitter = event_bus.emitter();
let mut rng = thread_rng();