Skip to content

Commit

Permalink
fix: TerminatorBlockBeanView was not dropping other than main chain
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxGalaxy committed Jan 12, 2025
1 parent 2fedfe5 commit d5ee6d9
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,14 +261,12 @@ public boolean canDrop(ArrayList<ActionBlockBean> actionBlocks, int index) {
if (isTerminated())
return false;
else {
if (actionBlocks.size() == 0)
return true;
return !(actionBlocks.get(actionBlocks.size() - 1) instanceof TerminatorBlockBean);
return true;
}
} else {
if (actionBlocks.size() == 0)
return true;
return !(actionBlocks.get(actionBlocks.size() - 1) instanceof TerminatorBlockBean);
return !isTerminated();
}
} else {
if (actionBlocks.size() == 0) {
Expand Down

0 comments on commit d5ee6d9

Please sign in to comment.