v0.4.28: wipe video_player_cache on game shutdown
Some checks failed
build / build (push) Has been cancelled
Some checks failed
build / build (push) Has been cancelled
Add ClientLifecycleEvents.CLIENT_STOPPING handler that deletes every file under <gameDir>/video_player_cache/. Quieter sibling of clearAll() - no chat notify and no concurrent-download race handling needed since at shutdown no other code is touching the directory. Cache repopulation on next launch is already handled: the server's ServerPlayConnectionEvents.JOIN handler re-broadcasts a PreloadPayload for every preload_urls and cache_entries entry on every join, so a freshly wiped cache auto-refills from the server's named entries without any user action. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,7 @@ org.gradle.configuration-cache=false
|
||||
|
||||
# Mod
|
||||
mod_id=video_player
|
||||
mod_version=0.4.27
|
||||
mod_version=0.4.28
|
||||
maven_group=com.ejclaw.videoplayer
|
||||
archives_base_name=video_player
|
||||
|
||||
|
||||
Reference in New Issue
Block a user