mirror of
https://github.com/italicsjenga/valence.git
synced 2025-01-27 05:56:33 +11:00
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:
parent
4c0f070d27
commit
7cd483afb7
2 changed files with 3 additions and 3 deletions
|
@ -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];
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue