mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-27 21:26:17 +01:00
No need to throw an exception if the "last updated" file is corrupt.
This commit is contained in:
parent
6443de6257
commit
7503470cb1
@ -110,14 +110,13 @@ public class ProtocolConfig {
|
||||
try {
|
||||
return Long.parseLong(Files.toString(dataFile, Charsets.UTF_8));
|
||||
} catch (NumberFormatException e) {
|
||||
throw new RuntimeException("Cannot parse " + dataFile + " as a number.", e);
|
||||
plugin.getLogger().warning("Cannot parse " + dataFile + " as a number.");
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException("Cannot read " + dataFile, e);
|
||||
plugin.getLogger().warning("Cannot read " + dataFile);
|
||||
}
|
||||
} else {
|
||||
// Default last update
|
||||
return 0;
|
||||
}
|
||||
// Default last update
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user