Compare commits

...

2 Commits

Author SHA1 Message Date
b2ed65519e build: add more profiles 2026-04-18 16:14:59 -04:00
dea30ceec9 fix(movement): flip without_mining 2026-04-16 21:45:29 -04:00
2 changed files with 12 additions and 2 deletions

View File

@@ -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"] }

View File

@@ -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;