mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 03:34:43 +02:00
Fix issues pointed out by the FindBugs plugin
This commit is contained in:
@ -521,7 +521,10 @@ public final class PartyManager {
|
||||
*/
|
||||
public static void saveParties() {
|
||||
if (partyFile.exists()) {
|
||||
partyFile.delete();
|
||||
if (!partyFile.delete()) {
|
||||
mcMMO.p.getLogger().warning("Could not delete party file. Party saving failed!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
YamlConfiguration partiesFile = new YamlConfiguration();
|
||||
|
Reference in New Issue
Block a user