Goals persist as a player attachment: load on join, write after each change, unload on leave so worlds do not leak. Dying does not wipe the list. Remote dedicated servers stay RAM-only.
This commit is contained in:
@@ -282,6 +282,27 @@ The port remains. The **order** was wrong.
|
||||
|
||||
---
|
||||
|
||||
### ADR-017 — First persistence is the player in this world
|
||||
|
||||
**Date:** 2026-09-08
|
||||
|
||||
**Decision:** Active goals persist as a NeoForge player attachment in the current world's save.
|
||||
|
||||
- Per player, not one list for the whole world
|
||||
- Copy on death: dying does not wipe the plan
|
||||
- Load on join, write after each change, unload RAM on leave so worlds do not leak
|
||||
- Singleplayer and LAN host. A remote dedicated server has no integrated world save on the client; that session stays RAM-only until a server adapter exists
|
||||
|
||||
**Reason:**
|
||||
|
||||
The first slice is a prosthetic the player can quit and resume. ADR-004 named world save, server save, and cloud. World save is the one they play.
|
||||
|
||||
**Status:** ✅ Accepted
|
||||
|
||||
**Refines:** ADR-004. **Supersedes** ADR-013’s “Persistence: in-memory” freeze for this slice.
|
||||
|
||||
---
|
||||
|
||||
## Related Documents
|
||||
|
||||
[[🏛️ Architecture]]
|
||||
|
||||
Reference in New Issue
Block a user