Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed velocity configuration being overridden #248

Merged
merged 1 commit into from
Dec 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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