mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-05 11:54:54 +00:00
2497 Swap instruction handling. WIP
This commit is contained in:
@@ -3369,6 +3369,7 @@ public class Graph {
|
||||
|
||||
if (code.size() <= part.start) {
|
||||
if (!(!ret.isEmpty() && ret.get(ret.size() - 1) instanceof ExitItem)) {
|
||||
stack.moveToOutput(ret, true);
|
||||
ret.add(new ScriptEndItem(dialect));
|
||||
}
|
||||
return ret;
|
||||
@@ -3533,6 +3534,7 @@ public class Graph {
|
||||
} while (exHappened);
|
||||
if ((part.end >= code.size() - 1) && getNextParts(localData, part).isEmpty()) {
|
||||
if (!(!output.isEmpty() && output.get(output.size() - 1) instanceof ExitItem)) {
|
||||
stack.moveToOutput(output, true);
|
||||
output.add(new ScriptEndItem(dialect));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user