aboutsummaryrefslogtreecommitdiff
path: root/bot
diff options
context:
space:
mode:
Diffstat (limited to 'bot')
-rwxr-xr-xbot/Cargo.toml2
-rw-r--r--bot/src/main.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/bot/Cargo.toml b/bot/Cargo.toml
index e55f6c3d..b66e3b75 100755
--- a/bot/Cargo.toml
+++ b/bot/Cargo.toml
@@ -9,4 +9,4 @@ version = "0.1.0"
azalea-client = {path = "../azalea-client"}
azalea-core = {path = "../azalea-core"}
azalea-protocol = {path = "../azalea-protocol"}
-tokio = "^1.14.0"
+tokio = "^1.19.2"
diff --git a/bot/src/main.rs b/bot/src/main.rs
index f0f915f9..2c2bee32 100644
--- a/bot/src/main.rs
+++ b/bot/src/main.rs
@@ -6,7 +6,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("Hello, world!");
// let address = "95.111.249.143:10000";
- let address = "localhost:61146";
+ let address = "localhost:59021";
// let response = azalea_client::ping::ping_server(&address.try_into().unwrap())
// .await
// .unwrap();
@@ -22,10 +22,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
Event::Login => {}
Event::Chat(_p) => {
let world = client.world();
- world.get_block_state(&BlockPos::new(0, 0, 0)).unwrap();
+ let b = world.get_block_state(&BlockPos::new(0, 0, 0)).unwrap();
// let world = state.world.as_ref().unwrap();
// world.
- // println!("{:#?}", world);
+ println!("{:?}", b);
// world.get_block_state(state.player.entity.pos);
// println!("{}", p.message.to_ansi(None));
// if p.message.to_ansi(None) == "<py5> ok" {