Skip to content

Commit bc14e99

Browse files
Update BrigadierPlusCommandAPI.kt to match Java content (#5)
1 parent 334d68e commit bc14e99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reference-code/src/main/kotlin/internal/BrigadierPlusCommandAPI.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ fun brigadierPlusCommandAPI() {
4545
// #endregion addPredicateExampleStep5
4646

4747
// #region addPredicateExampleStep6
48-
// Add <numerator> <denominator> as a child of randomchance
49-
randomChance.addChild(numerator.then(denominator).build())
48+
// Add (randomchance <numerator> <denominator>) as a child of (execute -> if)
49+
Brigadier.getRootNode().getChild("execute").getChild("if").addChild(randomChance);
5050
// #endregion addPredicateExampleStep6
5151
// #endregion addPredicateExample
52-
}
52+
}

0 commit comments

Comments
 (0)