Update from upstream SpigotMC
Part revert to fix (0) in place of file name SpigotMC/Spigot@2fbc1f2704 Fix the last PR SpigotMC/Spigot@b2199df3f7
This commit is contained in:
@@ -15,10 +15,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ // Spigot Start
|
||||
+ } catch ( java.io.FileNotFoundException ex )
|
||||
+ {
|
||||
+ a.info( "Unable to find file {0}, creating it.", this.c );
|
||||
+ org.bukkit.Bukkit.getLogger().log( java.util.logging.Level.INFO, "Unable to find file {0}, creating it.", this.c );
|
||||
+ } catch ( net.minecraft.util.com.google.gson.JsonSyntaxException ex )
|
||||
+ {
|
||||
+ a.warn( "Unable to read file {0}, backing it up to {0}.backup and creating new copy.", this.c );
|
||||
+ org.bukkit.Bukkit.getLogger().log( java.util.logging.Level.WARNING, "Unable to read file {0}, backing it up to {0}.backup and creating new copy.", this.c );
|
||||
+ File backup = new File( this.c + ".backup" );
|
||||
+ this.c.renameTo( backup );
|
||||
+ this.c.delete();
|
||||
|
||||
Reference in New Issue
Block a user