This commit is contained in:
2026-06-28 00:17:08 -05:00
parent 9de31d933b
commit 83409a5c25
6 changed files with 17 additions and 20 deletions
+1 -3
View File
@@ -80,9 +80,7 @@ impl Registerable for BoardRef {
engine.register_fn("tagged", move |board_ref: &mut BoardRef, tag: ImmutableString| -> rhai::Array {
let board = board_ref.borrow();
board
.objects
.iter()
.filter_map(|(_id, def)| {
.objects.values().filter_map(|def| {
if def.tags.contains(tag.as_str()) {
Some(Dynamic::from(ObjectInfo::from_def(def, board_ref.clone())))
} else {