diff options
| author | mat <git@matdoes.dev> | 2025-06-26 12:32:01 +0930 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-06-26 10:05:58 +0700 |
| commit | f9e4b65713bbacabcd54416a388a92b90f56ab47 (patch) | |
| tree | 25d392d60836351311e9f498d40277c226c1e32c /azalea-client/src/plugins/loading.rs | |
| parent | af1ef9310093aa3c8dfd5054eb6d0b8c7c0d0b31 (diff) | |
| download | azalea-drasl-f9e4b65713bbacabcd54416a388a92b90f56ab47.tar.xz | |
start adding packet_order test
Diffstat (limited to 'azalea-client/src/plugins/loading.rs')
| -rw-r--r-- | azalea-client/src/plugins/loading.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/azalea-client/src/plugins/loading.rs b/azalea-client/src/plugins/loading.rs index 217d6f75..b195868b 100644 --- a/azalea-client/src/plugins/loading.rs +++ b/azalea-client/src/plugins/loading.rs @@ -14,8 +14,8 @@ impl Plugin for PlayerLoadedPlugin { GameTick, player_loaded_packet .after(PhysicsSet) - .after(MiningSet) - .after(crate::movement::send_position), + .before(MiningSet) + .before(crate::movement::send_position), ); } } @@ -36,8 +36,11 @@ pub fn player_loaded_packet( Entity, ( With<LocalEntity>, - With<InLoadedChunk>, Without<HasClientLoaded>, + // the vanilla client waits for the chunk mesh to be "compiled" for the renderer (or + // some other conditions) before sending PlayerLoaded. see LevelLoadStatusManager.tick + // in the decompiled source + With<InLoadedChunk>, ), >, ) { |
