Fishing hook

This commit is contained in:
2026-09-28 20:52:53 -03:00
parent d606bc4b55
commit ad6adb49dc
16 changed files with 258 additions and 37 deletions
+3 -1
View File
@@ -250,7 +250,9 @@ export class EntityManager implements EntityLevel {
// entities riding something are saved with what they ride
save(): SavedEntity[] {
const saved = this.all().filter((entity) => !entity.vehicle).map((entity) => entity.save());
const saved = this.all().filter((entity) => !entity.vehicle && entity.persistent).map((entity) =>
entity.save()
);
return [...saved, ...this.#unknown];
}