update chance-man to v2.1.3 (#7864)

* Update chance-man to 2.1.3

Switch to java.nio Files for safer saves and add automatic backups

- Migrated UnlockedItemsManager & RolledItemsManager from old FileReader/FileWriter to java.nio.Files/Path
- Write JSON via a temp file + ATOMIC_MOVE so saves are atomic
- Keep up to 10 rotating backups in a `backups/` folder, automatically pruning older ones
- Cleaned up ChanceManPlugin.startUp(): only register the overlay once (removed duplicate call)

* Update chance-man

Ensure “clean”/“rub” only locked for tracked items

* Update chance-man

harden persistence for rolled & unlocked items

- Automatically create data files on first run to avoid null pointer errors  
- Add `safeMove()` helper for atomic‐move fallback and AccessDeniedException handling  
- Rotate and prune backups, keeping only the latest `MAX_BACKUPS`  
- Streamline load/save: write to a `.tmp` and then swap it into place  
- Fix edge cases: NPEs on login, atomic‐move failures, and backup conflicts during rapid saves
This commit is contained in:
ChunkyAtlas
2025-04-26 01:19:31 -06:00
committed by GitHub
parent 7b790fff16
commit 3bc7b0fd52

View File

@@ -1,2 +1,2 @@
repository=https://github.com/ChunkyAtlas/chance-man.git
commit=eefcba690e71bc18cbfed5e6d34cc76ae4e1256d
commit=6faef6d7e1ad45185610fca5bae946b456946ab3