From 3d1a10db3b1ccdc624f059ee605738c751eb845e Mon Sep 17 00:00:00 2001 From: Tim203 Date: Fri, 16 Jun 2023 22:54:21 +0200 Subject: [PATCH] Update events library to latest version --- .../geyser/extension/event/GeyserExtensionEventBus.java | 8 +++++++- gradle/libs.versions.toml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/geysermc/geyser/extension/event/GeyserExtensionEventBus.java b/core/src/main/java/org/geysermc/geyser/extension/event/GeyserExtensionEventBus.java index f56b254a6..2764499ef 100644 --- a/core/src/main/java/org/geysermc/geyser/extension/event/GeyserExtensionEventBus.java +++ b/core/src/main/java/org/geysermc/geyser/extension/event/GeyserExtensionEventBus.java @@ -27,6 +27,7 @@ package org.geysermc.geyser.extension.event; import org.checkerframework.checker.nullness.qual.NonNull; import org.geysermc.event.Event; +import org.geysermc.event.FireResult; import org.geysermc.event.PostOrder; import org.geysermc.event.subscribe.Subscriber; import org.geysermc.geyser.api.event.EventBus; @@ -47,10 +48,15 @@ public record GeyserExtensionEventBus(EventBus eventBus, Extensi } @Override - public boolean fire(@NonNull Event event) { + public FireResult fire(@NonNull Event event) { return eventBus.fire(event); } + @Override + public FireResult fireSilently(@NonNull Event event) { + return eventBus.fireSilently(event); + } + @Override public @NonNull Set> subscribers(@NonNull Class eventClass) { return eventBus.subscribers(eventClass); diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index b7d828b1e..d179c7576 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -2,7 +2,7 @@ base-api = "1.0.0-SNAPSHOT" cumulus = "1.1.1" erosion = "1.0-20230406.174837-8" -events = "1.0-SNAPSHOT" +events = "1.1-SNAPSHOT" jackson = "2.14.0" fastutil = "8.5.2" netty = "4.1.80.Final"