Skip to content

Commit

Permalink
Solved error
Browse files Browse the repository at this point in the history
  • Loading branch information
UnGuZartex committed Mar 15, 2020
1 parent ce31c86 commit 176d222
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/main/java/System/BlockStructure/Blocks/IfBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,7 @@ public class IfBlock extends CavityBlock {
public IfBlock(CavityFunctionality cavityFunctionality) {
super(cavityFunctionality);
}

@Override
public Block getNext() {
if (getFunctionality().getEvaluation()) {
setAlreadyRan(true);
return getCavitySubConnector().getConnectedBlock();
}
else if (getCavitySubConnector().isConnected()) {
getCavitySubConnector().getConnectedBlock().reset();
}
setAlreadyRan(true);
return super.getNext();
}


/**
* Get the next block to execute, this depends on the evaluation of the condition of this block.
* If the condition is true, the next block is the first in the cavity, otherwise, the next block
Expand Down
Binary file added vpproject/Blockr.vpp
Binary file not shown.
Binary file added vpproject/Blockr.vpp~1
Binary file not shown.

0 comments on commit 176d222

Please sign in to comment.