mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
Implement replay folders & sorting
This commit is contained in:
1 parent
4ce99cd255
commit
155d3f9c3d
21 files changed
+1088
-566
No files matched your search
@@ -367,6 +367,8 @@ public class Flashback implements ModInitializer, ClientModInitializer {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Flashback.getConfig().tickDelayedSave();
|
||||
});
|
||||
|
||||
ClientTickEvents.START_CLIENT_TICK.register(minecraft -> {
|
||||
@@ -525,7 +527,7 @@ public class Flashback implements ModInitializer, ClientModInitializer {
|
||||
|
||||
private void deleteUnusedReplayStates() {
|
||||
Path flashbackDir = Flashback.getDataDirectory();
|
||||
Path replayDir = flashbackDir.resolve("replays");
|
||||
Path replayDir = Flashback.getReplayFolder();
|
||||
Path replayStatesDir = flashbackDir.resolve("editor_states");
|
||||
|
||||
if (!Files.exists(replayDir) || !Files.isDirectory(replayDir)) {
|
||||
@@ -766,7 +768,7 @@ public class Flashback implements ModInitializer, ClientModInitializer {
|
||||
if (config.recentReplays.size() > 32) {
|
||||
config.recentReplays.remove(config.recentReplays.size() - 1);
|
||||
}
|
||||
config.saveToDefaultFolder();
|
||||
config.delayedSaveToDefaultFolder();
|
||||
|
||||
// Actually load
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user