Skip to content

Commit

Permalink
Merge pull request #476 from frank-weinberg/bugfix/penalty-codes
Browse files Browse the repository at this point in the history
Fix setting up penalty codes
  • Loading branch information
frank-weinberg authored Aug 16, 2020
2 parents 2b2448f + 017f1c8 commit 194a4eb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public PenaltyCodesManager(ScoreBoard parent) {
super(parent, "", ScoreBoard.PENALTY_CODES);
addProperties(CODE);
this.parent = parent;
loadFromJSON(parent.getRulesets().get(Rule.PENALTIES_FILE));
setDefinitions(loadFromJSON(parent.getRulesets().get(Rule.PENALTIES_FILE)));
parent.addScoreBoardListener(
new ConditionalScoreBoardListener<>(Rulesets.class, Rulesets.CURRENT_RULE, rulesetChangeListener));
}
Expand Down Expand Up @@ -54,5 +54,5 @@ public void scoreBoardChange(ScoreBoardEvent<?> event) {
}
};

Child<PenaltyCode> CODE = new Child<>(PenaltyCode.class, "PenaltyCode");
Child<PenaltyCode> CODE = new Child<>(PenaltyCode.class, "Code");
}

0 comments on commit 194a4eb

Please sign in to comment.