mobs diagnostics: say why passenger is set outside the json! macro

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-25 14:37:26 +01:00
parent 806f7d87f3
commit 2f1f0150eb
+3 -1
View File
@@ -371,7 +371,9 @@ impl Game<'_> {
"vehicle": m.extra.mount,
})),
});
state["passenger"] = serde_json::json!(m.extra.passenger);
// Drawn seated (Entity.isPassenger); set apart because the
// json! above is at the macro recursion limit.
state["passenger"] = m.extra.passenger.into();
state
})
.collect();