Skip to content

Commit

Permalink
Merge pull request #248 from MelvinSnijders/master
Browse files Browse the repository at this point in the history
Fixed velocity configuration being overridden
  • Loading branch information
Mindgamesnl committed Dec 17, 2021
2 parents 011d87a + ada3ca5 commit 73a2048
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,12 @@ public void setString(StorageKey location, String string) {
switch (location.getStorageLocation()) {
case DATA_FILE:
dataConfig.getNode(path).setValue(token, string);
break;

case CONFIG_FILE:
mainConfig.getNode(path).setValue(token, string);
cachedConfigStrings.put(location, string);
break;
}
}

Expand All @@ -181,9 +183,11 @@ public void setString(StorageLocation storageLocation, String path, String strin
switch (storageLocation) {
case DATA_FILE:
dataConfig.getNode(pathArr).setValue(token, string);
break;

case CONFIG_FILE:
mainConfig.getNode(pathArr).setValue(token, string);
break;
}
}

Expand All @@ -200,9 +204,11 @@ public void setInt(StorageLocation storageLocation, String path, int value) {
switch (storageLocation) {
case DATA_FILE:
dataConfig.getNode(pathArr).setValue(value);
break;

case CONFIG_FILE:
mainConfig.getNode(pathArr).setValue(value);
break;
}
}

Expand Down Expand Up @@ -251,9 +257,11 @@ public void set(StorageKey location, Object value) {
switch (location.getStorageLocation()) {
case DATA_FILE:
dataConfig.getNode(path).setValue(token, value);
break;

case CONFIG_FILE:
mainConfig.getNode(path).setValue(token, value);
break;
}
}

Expand Down Expand Up @@ -353,9 +361,11 @@ public void setBoolean(StorageKey location, boolean value) {
switch (location.getStorageLocation()) {
case DATA_FILE:
dataConfig.getNode(path).setValue(value);
break;

case CONFIG_FILE:
mainConfig.getNode(path).setValue(value);
break;
}
}

Expand Down

0 comments on commit 73a2048

Please sign in to comment.