mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
optimization: only run update_on_climbable for local entities
This commit is contained in:
parent
913d6ac8c5
commit
1be8d8638f
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ pub fn update_fluid_on_eyes(
|
|||
}
|
||||
|
||||
pub fn update_on_climbable(
|
||||
mut query: Query<(&mut OnClimbable, &Position, &InstanceName)>,
|
||||
mut query: Query<(&mut OnClimbable, &Position, &InstanceName), With<LocalEntity>>,
|
||||
instance_container: Res<InstanceContainer>,
|
||||
) {
|
||||
for (mut on_climbable, position, instance_name) in query.iter_mut() {
|
||||
|
|
Loading…
Add table
Reference in a new issue