From 57345fa102cd45cf3b7f2e59b40c2bad64145e8b Mon Sep 17 00:00:00 2001 From: RednedEpic Date: Sat, 15 Jan 2022 23:01:40 -0600 Subject: [PATCH] Event owner can be null --- .../java/org/geysermc/geyser/api/event/EventSubscription.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/geyser/src/main/java/org/geysermc/geyser/api/event/EventSubscription.java b/api/geyser/src/main/java/org/geysermc/geyser/api/event/EventSubscription.java index 65939a7b0..daa05ab21 100644 --- a/api/geyser/src/main/java/org/geysermc/geyser/api/event/EventSubscription.java +++ b/api/geyser/src/main/java/org/geysermc/geyser/api/event/EventSubscription.java @@ -26,6 +26,7 @@ package org.geysermc.geyser.api.event; import org.checkerframework.checker.nullness.qual.NonNull; +import org.checkerframework.checker.nullness.qual.Nullable; import org.geysermc.geyser.api.extension.Extension; import java.util.function.Consumer; @@ -62,7 +63,7 @@ public interface EventSubscription { * * @return the extension that owns this subscription */ - @NonNull + @Nullable Extension owner(); /**