From 46499b6abe2cc94c5fc1f7cc3ba2191bb19b1a48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20H=C3=B6lting?= <87192362+moritz-hoelting@users.noreply.github.com> Date: Wed, 26 Feb 2025 09:12:15 +0100 Subject: [PATCH] fix example - "$(" is still invalid when in the same line as a macro usage, as it currently cannot be escaped in minecraft --- examples/basic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/basic.rs b/examples/basic.rs index ca48405..551c9d0 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -22,7 +22,7 @@ fn main() { bar_function.add_command(call_func); // add a complex command to the function "bar" bar_function.add_command(Command::Execute(Execute::As( - "@a".to_string(), + "@a".into(), Box::new(Execute::If( Condition::from("block ~ ~ ~ minecraft:stone") | !(!Condition::from("block ~ ~1 ~ minecraft:stone")