fix example

- "$(" is still invalid when in the same line as a macro usage, as it currently cannot be escaped in minecraft
This commit is contained in:
Moritz Hölting 2025-02-26 09:12:15 +01:00
parent 76d58c0766
commit 46499b6abe
1 changed files with 1 additions and 1 deletions

View File

@ -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")