diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2026-01-13 10:51:30 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-13 10:51:30 -0600 |
| commit | d5fa5e32b37754b3b5c136e58821e48cd3b7c2ff (patch) | |
| tree | ea04702f96ad170fb1d90e5ed2dc875ae8166495 /azalea-client/src/plugins/block_update.rs | |
| parent | efb36d5fc0fe56a98f5795c53dfa109887cd5aae (diff) | |
| download | azalea-drasl-d5fa5e32b37754b3b5c136e58821e48cd3b7c2ff.tar.xz | |
Rename Instance to World (#304)
Diffstat (limited to 'azalea-client/src/plugins/block_update.rs')
| -rw-r--r-- | azalea-client/src/plugins/block_update.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/azalea-client/src/plugins/block_update.rs b/azalea-client/src/plugins/block_update.rs index 46e6b409..51dba728 100644 --- a/azalea-client/src/plugins/block_update.rs +++ b/azalea-client/src/plugins/block_update.rs @@ -5,7 +5,7 @@ use bevy_ecs::prelude::*; use crate::{ chunks::handle_receive_chunk_event, interact::BlockStatePredictionHandler, - local_player::InstanceHolder, + local_player::WorldHolder, }; pub struct BlockUpdatePlugin; @@ -34,12 +34,12 @@ pub struct QueuedServerBlockUpdates { pub fn handle_block_update_event( mut query: Query<( &mut QueuedServerBlockUpdates, - &InstanceHolder, + &WorldHolder, &mut BlockStatePredictionHandler, )>, ) { - for (mut queued, instance_holder, mut prediction_handler) in query.iter_mut() { - let world = instance_holder.instance.read(); + for (mut queued, world_holder, mut prediction_handler) in query.iter_mut() { + let world = world_holder.shared.read(); for (pos, block_state) in queued.list.drain(..) { if !prediction_handler.update_known_server_state(pos, block_state) { world.chunks.set_block_state(pos, block_state); |
