Skip to content

Commit

Permalink
fix if command old defs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Nov 22, 2018
1 parent e039bb1 commit 07ff846
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -60,17 +60,20 @@ public static List<BracedData> getBracedCommands(ScriptEntry scriptEntry) {
res.set(i, newbd);
newbd.key = bd.key;
newbd.value = new ArrayList<ScriptEntry>(bd.value.size());
newbd.needPatch = bd.needPatch;
for (ScriptEntry sEntry : bd.value) {
ScriptEntry newEntry = sEntry.clone();
newEntry.entryData.transferDataFrom(scriptEntry.entryData);
newbd.value.add(newEntry);
}
if (dB.verbose) {
dB.echoDebug(scriptEntry, "Wrangling braced command args[" + bd.needPatch + "]: " + bd.key);
}
if (bd.needPatch) {
newbd.args = new ArrayList<String>(bd.args.size());
for (int x = bd.aStart; x <= bd.aEnd; x++) {
newbd.args.add(CommandExecuter.parseDefsRaw(scriptEntry, scriptEntry.args.get(x)));
}
break;
}
else {
newbd.args = bd.args;
Expand Down Expand Up @@ -215,7 +218,7 @@ else if (arg.equals("}")) {
}
}
if (hyperdebug) {
dB.echoDebug(scriptEntry, "Adding section " + bracesName);
dB.echoDebug(scriptEntry, "Adding section " + bracesName + " with " + tStart + " to " + tEnd);
}
bd.args = bracesArgs;
bd.aStart = tStart;
Expand All @@ -228,6 +231,7 @@ else if (arg.equals("}")) {
commandList = new TreeMap<Integer, ArrayList<String>>();
tEnd = -1;
tStart = i + 1;
tPatchMe = false;
}
}

Expand Down

0 comments on commit 07ff846

Please sign in to comment.