Fishing hook
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user