aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/dev/isxander/yacl/impl/OptionImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/dev/isxander/yacl/impl/OptionImpl.java b/src/main/java/dev/isxander/yacl/impl/OptionImpl.java
index 14cf6a8..98a2f48 100644
--- a/src/main/java/dev/isxander/yacl/impl/OptionImpl.java
+++ b/src/main/java/dev/isxander/yacl/impl/OptionImpl.java
@@ -42,12 +42,12 @@ public class OptionImpl<T> implements Option<T> {
@NotNull Collection<BiConsumer<Option<T>, T>> listeners
) {
this.name = name;
- this.controller = controlGetter.apply(this);
this.binding = binding;
this.available = available;
this.flags = flags;
this.typeClass = typeClass;
this.listeners = new ArrayList<>(listeners);
+ this.controller = controlGetter.apply(this);
addListener((opt, pending) -> tooltip = tooltipGetter.apply(pending));
requestSet(binding().getValue());