mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-05 11:34:57 +00:00
Issue #172 checkPrecoNextParts fix
This commit is contained in:
@@ -129,7 +129,7 @@ public class ActionGraph extends Graph {
|
||||
protected List<GraphPart> checkPrecoNextParts(GraphPart part) {
|
||||
List<GraphSourceItem> items = getPartItems(part);
|
||||
part = makeMultiPart(part);
|
||||
if (!items.isEmpty()) {
|
||||
if (items.size() > 1) {
|
||||
if (items.get(items.size() - 1) instanceof ActionIf) {
|
||||
if (items.get(items.size() - 2) instanceof ActionStrictEquals) {
|
||||
List<Integer> storeRegisters = new ArrayList<>();
|
||||
|
||||
@@ -2311,7 +2311,10 @@ public class Graph {
|
||||
}
|
||||
} while (part != null);
|
||||
if (parts.size() > 1) {
|
||||
return new GraphPartMulti(parts);
|
||||
GraphPartMulti ret = new GraphPartMulti(parts);
|
||||
ret.refs.addAll(parts.get(0).refs);
|
||||
ret.nextParts.addAll(parts.get(parts.size() - 1).nextParts);
|
||||
return ret;
|
||||
} else {
|
||||
return parts.get(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user