Skip to content

Commit dea30ce

Browse files
fix(movement): flip without_mining
1 parent 2c83072 commit dea30ce

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/lua/client/movement.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ pub async fn go_to(
9292
client
9393
.goto_with_opts(
9494
goal,
95-
PathfinderOpts::new().allow_mining(options.get("without_mining").unwrap_or_default()),
95+
PathfinderOpts::new()
96+
.allow_mining(!options.get::<bool>("without_mining").unwrap_or_default()),
9697
)
9798
.await;
9899

@@ -116,7 +117,8 @@ pub async fn start_go_to(
116117
)?;
117118
client.start_goto_with_opts(
118119
goal,
119-
PathfinderOpts::new().allow_mining(options.get("without_mining").unwrap_or_default()),
120+
PathfinderOpts::new()
121+
.allow_mining(!options.get::<bool>("without_mining").unwrap_or_default()),
120122
);
121123
let _ = client.get_tick_broadcaster().recv().await;
122124

0 commit comments

Comments
 (0)