Nukkit generator fixes

This commit is contained in:
Jesse Boyd
2016-09-30 14:26:20 +10:00
parent e4d7270c28
commit 6074fc8033
5 changed files with 60 additions and 10 deletions

View File

@ -52,7 +52,10 @@ public abstract class FileConfiguration extends MemoryConfiguration {
* any reason.
*/
public void save(File file) throws IOException {
file.getParentFile().mkdirs();
File parent = file.getParentFile();
if (parent != null) {
parent.mkdirs();
}
String data = saveToString();