Replaced valence_protocol and valence_nbt imports with valence ones (#279)

## Description

This PR replace `valence_protocol` and `valence_nbt` imports in
`crates/valence/examples` with `valence` ones so you don't have to
change imports or import the crates when you copy the examples and have
only `valence` as a dependency.
This commit is contained in:
wjwzpeajhc 2023-03-08 23:18:56 +01:00 committed by GitHub
parent 4c0f070d27
commit 7cd483afb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -1,8 +1,8 @@
use valence::client::despawn_disconnected_clients;
use valence::client::event::{default_event_handler, ChatMessage, PlayerInteractBlock};
use valence::nbt::{compound, List};
use valence::prelude::*;
use valence_nbt::{compound, List};
use valence_protocol::types::Hand;
use valence::protocol::types::Hand;
const FLOOR_Y: i32 = 64;
const SIGN_POS: [i32; 3] = [3, FLOOR_Y + 1, 2];

View file

@ -3,7 +3,7 @@ use valence::client::event::{
default_event_handler, PlayerInteractBlock, StartDigging, StartSneaking, StopDestroyBlock,
};
use valence::prelude::*;
use valence_protocol::types::Hand;
use valence::protocol::types::Hand;
const SPAWN_Y: i32 = 64;