We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d32c36b commit b9acce7Copy full SHA for b9acce7
src/main/java/com/cleanroommc/modularui/widget/Widget.java
@@ -311,9 +311,10 @@ public W onUpdateListener(Consumer<W> listener) {
311
312
public W onUpdateListener(Consumer<W> listener, boolean merge) {
313
if (merge && this.onUpdateListener != null) {
314
+ final Consumer<W> oldListener = this.onUpdateListener;
315
if (listener != null) {
316
this.onUpdateListener = w -> {
- this.onUpdateListener.accept(w);
317
+ oldListener.accept(w);
318
listener.accept(w);
319
};
320
}
0 commit comments