Compare commits
2 Commits
2c83072427
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
b2ed65519e
|
|||
|
dea30ceec9
|
@@ -15,6 +15,14 @@ codegen-units = 1
|
||||
lto = true
|
||||
strip = true
|
||||
|
||||
[profile.release-no-lto]
|
||||
inherits = "release"
|
||||
lto = false
|
||||
|
||||
[profile.small]
|
||||
inherits = "release"
|
||||
opt-level = "z"
|
||||
|
||||
[build-dependencies]
|
||||
built = { version = "0", features = ["git2"] }
|
||||
|
||||
|
||||
@@ -92,7 +92,8 @@ pub async fn go_to(
|
||||
client
|
||||
.goto_with_opts(
|
||||
goal,
|
||||
PathfinderOpts::new().allow_mining(options.get("without_mining").unwrap_or_default()),
|
||||
PathfinderOpts::new()
|
||||
.allow_mining(!options.get::<bool>("without_mining").unwrap_or_default()),
|
||||
)
|
||||
.await;
|
||||
|
||||
@@ -116,7 +117,8 @@ pub async fn start_go_to(
|
||||
)?;
|
||||
client.start_goto_with_opts(
|
||||
goal,
|
||||
PathfinderOpts::new().allow_mining(options.get("without_mining").unwrap_or_default()),
|
||||
PathfinderOpts::new()
|
||||
.allow_mining(!options.get::<bool>("without_mining").unwrap_or_default()),
|
||||
);
|
||||
let _ = client.get_tick_broadcaster().recv().await;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user