Fix decompilation error: ClassCastException in AND/OR detection.

This commit is contained in:
Jackkal
2015-03-19 20:56:22 +01:00
parent 9095d75d5e
commit d63fc8b2ec

View File

@@ -1471,7 +1471,7 @@ public class Graph {
a.firstPart = ((AndItem) second).firstPart;
}
if (second instanceof OrItem) {
a.firstPart = ((AndItem) second).firstPart;
a.firstPart = ((OrItem) second).firstPart;
}
} else {
OrItem o = new OrItem(null, first, second);
@@ -1480,8 +1480,8 @@ public class Graph {
if (second instanceof OrItem) {
o.firstPart = ((OrItem) second).firstPart;
}
if (second instanceof OrItem) {
o.firstPart = ((OrItem) second).firstPart;
if (second instanceof AndItem) {
o.firstPart = ((AndItem) second).firstPart;
}
}