Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
remove traceback from PlayerCache.dat (#787)
Browse files Browse the repository at this point in the history
remove traceback
  • Loading branch information
bombcar authored Dec 4, 2023
1 parent 35ced80 commit 5481952
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/main/java/gtPlusPlus/core/util/player/PlayerCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,13 @@ public class PlayerCache {

public static void initCache() {
if (CORE.PlayerCache == null) {
try {

if (cache != null) {
CORE.PlayerCache = PlayerCache.readPropertiesFileAsMap();
Logger.INFO("Loaded PlayerCache.dat");
}

} catch (final Exception e) {
Logger.INFO("Failed to initialise PlayerCache.dat");
if (cache.exists()) {
CORE.PlayerCache = PlayerCache.readPropertiesFileAsMap();
Logger.INFO("Loaded PlayerCache.dat");
}
if (CORE.PlayerCache == null) {
Logger.INFO("Failed to load PlayerCache.dat");
PlayerCache.createPropertiesFile("PLAYER_", "DATA");
// e.printStackTrace();
}
}
}
Expand Down

0 comments on commit 5481952

Please sign in to comment.