Rename valence_protocol to valence::protocol (#280)

## Description

Replaced the remaining `valence_protcol` with `valence::protocol` in the
examples
This commit is contained in:
AviiNL 2023-03-09 12:08:31 +01:00 committed by GitHub
parent 7cd483afb7
commit 52fadb6dd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -6,9 +6,9 @@ use rand::Rng;
use valence::client::despawn_disconnected_clients;
use valence::client::event::default_event_handler;
use valence::prelude::*;
use valence_protocol::packet::s2c::play::TitleFadeS2c;
use valence_protocol::sound::Sound;
use valence_protocol::types::SoundCategory;
use valence::protocol::packet::s2c::play::TitleFadeS2c;
use valence::protocol::sound::Sound;
use valence::protocol::types::SoundCategory;
const START_POS: BlockPos = BlockPos::new(0, 100, 0);
const VIEW_DIST: u8 = 10;

View file

@ -3,7 +3,7 @@ use valence::client::event::{
default_event_handler, PlayerInteract, ResourcePackStatus, ResourcePackStatusChange,
};
use valence::prelude::*;
use valence_protocol::packet::c2s::play::player_interact::Interaction;
use valence::protocol::packet::c2s::play::player_interact::Interaction;
const SPAWN_Y: i32 = 64;

View file

@ -1,7 +1,7 @@
use valence::client::despawn_disconnected_clients;
use valence::client::event::default_event_handler;
use valence::prelude::*;
use valence_protocol::translation_key;
use valence::protocol::translation_key;
const SPAWN_Y: i32 = 64;