diff --git a/.gitignore b/.gitignore index e645365..cad47a4 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,9 @@ *.txt gradlew gradlew.bat +.resumescan +offset.mcscan +.mcscanner # Directories .gradle diff --git a/src/com/stupidrepo/mcscanner/MCScanner.java b/src/com/stupidrepo/mcscanner/MCScanner.java index 15d4cbd..6a9752f 100644 --- a/src/com/stupidrepo/mcscanner/MCScanner.java +++ b/src/com/stupidrepo/mcscanner/MCScanner.java @@ -83,13 +83,13 @@ public void windowClosing(java.awt.event.WindowEvent windowEvent) { // Timeout or something idk } } - logger.log(Level.INFO, "Making an '.resumescan'..."); + logger.log(Level.INFO, "Making an '.mcscanner'..."); try { - BufferedWriter writer = new BufferedWriter(new FileWriter(".resumescan")); + BufferedWriter writer = new BufferedWriter(new FileWriter(".mcscanner")); writer.write(String.valueOf(offsetI + "\n" + offsetJ + "\n" + offsetK + "\n" + offsetL)); writer.close(); } catch (IOException e) { - logger.log(Level.SEVERE, "Failed to write '.resumescan'!"); + logger.log(Level.SEVERE, "Failed to write '.mcscanner'!"); } logger.log(Level.INFO, "Exiting..."); System.exit(0); @@ -112,10 +112,10 @@ public void windowClosing(java.awt.event.WindowEvent windowEvent) { frame.setVisible(true); - File offsetFile = new File(".resumescan"); + File offsetFile = new File(".mcscanner"); if (offsetFile.exists()) { try { - logger.log(Level.INFO, "Found '.resumescan'!"); + logger.log(Level.INFO, "Found '.mcscanner'!"); BufferedReader reader = new BufferedReader(new FileReader(offsetFile)); offsetI = Integer.parseInt(reader.readLine()); offsetJ = Integer.parseInt(reader.readLine()); @@ -124,7 +124,7 @@ public void windowClosing(java.awt.event.WindowEvent windowEvent) { logger.log(Level.INFO, "Continuing from " + offsetI + "." + offsetJ + "." + offsetK + "." + offsetL + "..."); reader.close(); } catch (IOException e) { - logger.log(Level.SEVERE, "Failed to read '.resumescan'!"); + logger.log(Level.SEVERE, "Failed to read '.mcscanner'!"); } }