Initialize new worlds as fully patched
This commit is contained in:
parent
c4d7035ef2
commit
eb8c87468f
4 changed files with 89 additions and 27 deletions
|
@ -104,6 +104,9 @@ public class WorldDataAPI {
|
|||
*/
|
||||
public static void saveFile(String modID) {
|
||||
try {
|
||||
if (!dataDir.exists()){
|
||||
dataDir.mkdirs();
|
||||
}
|
||||
NbtIo.writeCompressed(getRootTag(modID), new File(dataDir, modID + ".nbt"));
|
||||
}
|
||||
catch (IOException e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue