mirror of
https://github.com/GTNewHorizons/MouseTweaks.git
synced 2026-11-22 04:52:18 +00:00
Updated to Minecraft 1.7.10, little code cleanup, fixed some minor bugs. Mouse Tweaks 2.4.4.
This commit is contained in:
1 parent
f7390768cf
commit
dbf0a2141e
8 files changed
+36
-48
No files matched your search
@@ -1,9 +1,6 @@
|
||||
package yalter.mousetweaks;
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileReader;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.io.*;
|
||||
import java.util.Properties;
|
||||
|
||||
public class Config {
|
||||
@@ -37,7 +34,12 @@ public class Config {
|
||||
|
||||
public boolean saveConfig() {
|
||||
try {
|
||||
FileWriter configWriter = new FileWriter(fileName);
|
||||
File config = new File(fileName);
|
||||
File parentDir = config.getParentFile();
|
||||
if (!parentDir.exists())
|
||||
parentDir.mkdirs();
|
||||
|
||||
FileWriter configWriter = new FileWriter(config);
|
||||
properties.store(configWriter, null);
|
||||
configWriter.close();
|
||||
|
||||
|
||||
Reference in new issue
Block a user