Fixes a bug in the preset prefix logic
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good

This commit is contained in:
2023-01-11 02:46:30 +01:00
parent bd00a59d08
commit f192a5a2b5
3 changed files with 10 additions and 4 deletions

View File

@@ -94,7 +94,8 @@ public enum SmithPreset {
negated = true;
}
if ((negated && !upperCasedPreset.startsWith("_PRESET:")) && !upperCasedPreset.startsWith("PRESET:")) {
if ((negated && !upperCasedPreset.startsWith("_PRESET:")) ||
(!negated && !upperCasedPreset.startsWith("PRESET:"))) {
return possiblePreset;
}