mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-18 00:31:59 +00:00
fixed && or || in loop condition
This commit is contained in:
@@ -842,11 +842,15 @@ public class Graph {
|
||||
}
|
||||
}
|
||||
if (loop) {
|
||||
if (expr instanceof AndItem) {
|
||||
currentLoop.loopContinue = ((AndItem) expr).firstPart;
|
||||
GraphTargetItem expr2=expr;
|
||||
if(expr2 instanceof NotItem){
|
||||
expr2=((NotItem)expr2).getOriginal();
|
||||
}
|
||||
if (expr instanceof OrItem) {
|
||||
currentLoop.loopContinue = ((OrItem) expr).firstPart;
|
||||
if (expr2 instanceof AndItem) {
|
||||
currentLoop.loopContinue = ((AndItem) expr2).firstPart;
|
||||
}
|
||||
if (expr2 instanceof OrItem) {
|
||||
currentLoop.loopContinue = ((OrItem) expr2).firstPart;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user