mirror of
https://github.com/LegacyModdingMC/UniMixins.git
synced 2026-11-26 07:02:59 +00:00
Create config dir if it doesn't exist
Fixes config not getting written if the config dir doesn't exist at the start of the run.
This commit is contained in:
1 parent
3b047eb51b
commit
13dc9d4066
1 file changed
+1
+1
@@ -57,6 +57,7 @@ class PropertyCollection {
|
||||
boolean dirty = properties.values().stream().anyMatch(PropertyToken::isDirty);
|
||||
|
||||
if(dirty) {
|
||||
file.getParentFile().mkdirs();
|
||||
try (BufferedWriter bw = new BufferedWriter(new FileWriter(file))) {
|
||||
for (Map.Entry<String, PropertyToken> e : properties.entrySet()) {
|
||||
PropertyToken token = e.getValue();
|
||||
|
||||
Reference in new issue
Block a user