Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ members = [
'crates/hyperion-proxy',
'crates/hyperion-proxy-module',
'crates/hyperion-rank-tree',
'crates/hyperion-respawn',
'crates/hyperion-scheduled',
'crates/hyperion-stats',
'crates/hyperion-text',
Expand Down Expand Up @@ -227,9 +226,6 @@ version = '0.3.6'
features = ['rustls-tls', 'stream']
version = '0.12.12'

[workspace.dependencies.hyperion-respawn]
path = 'crates/hyperion-respawn'

[workspace.dependencies.roaring]
features = ['simd']
version = '0.10.12'
Expand Down Expand Up @@ -322,6 +318,7 @@ missing_panics_doc = 'allow'
module_name_repetitions = 'allow'
print_stdout = 'deny'
single_match_else = 'allow'
struct_excessive_bools = 'allow'
too_long_first_doc_paragraph = 'allow'
too_many_lines = 'allow'
needless_pass_by_value = 'allow'
Expand Down
1 change: 0 additions & 1 deletion crates/hyperion-respawn/.gitignore

This file was deleted.

17 changes: 0 additions & 17 deletions crates/hyperion-respawn/Cargo.toml

This file was deleted.

1 change: 0 additions & 1 deletion crates/hyperion-respawn/README.md

This file was deleted.

124 changes: 0 additions & 124 deletions crates/hyperion-respawn/src/lib.rs

This file was deleted.

13 changes: 8 additions & 5 deletions crates/hyperion/src/egress/player_join/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use valence_registry::{BiomeRegistry, RegistryCodec};
use valence_server::entity::EntityKind;
use valence_text::IntoText;

use crate::simulation::{MovementTracking, Pitch, packet_state};
use crate::simulation::{MovementTracking, Pitch, TeleportEvent, packet_state};

mod list;
pub use list::*;
Expand All @@ -29,9 +29,7 @@ use crate::{
config::Config,
egress::metadata::show_all,
net::{Compose, ConnectionId, DataBundle},
simulation::{
PendingTeleportation, Position, Uuid, Yaw, skin::PlayerSkin, util::registry_codec_raw,
},
simulation::{Position, Uuid, Yaw, skin::PlayerSkin, util::registry_codec_raw},
};

#[derive(Event)]
Expand Down Expand Up @@ -345,10 +343,15 @@ fn process_player_join(
server_velocity: DVec3::ZERO,
sprinting: false,
was_on_ground: false,
skip_next_check: false,
},
PendingTeleportation::new(position),
packet_state::Play(()),
));
commands.send_event(TeleportEvent {
player: entity_id,
destination: position,
reset_velocity: false,
});
});

info!("{name} joined the world");
Expand Down
Loading
Loading