[commands] Fix incorrect Trigger docs (NFC) (#4792)

This commit is contained in:
Ryan Blue
2022-12-12 18:38:29 -05:00
committed by GitHub
parent f8d4e9866e
commit f66a667321

View File

@@ -472,10 +472,10 @@ public class Trigger implements BooleanSupplier {
} }
/** /**
* Composes two triggers with logical OR. * Composes two triggers with logical AND.
* *
* @param trigger the condition to compose with * @param trigger the condition to compose with
* @return A trigger which is active when either component trigger is active. * @return A trigger which is active when both component triggers are active.
*/ */
public Trigger and(BooleanSupplier trigger) { public Trigger and(BooleanSupplier trigger) {
return new Trigger(() -> m_condition.getAsBoolean() && trigger.getAsBoolean()); return new Trigger(() -> m_condition.getAsBoolean() && trigger.getAsBoolean());