diff --git a/src/main/java/net/minestom/server/event/EventNode.java b/src/main/java/net/minestom/server/event/EventNode.java index 30ffb35d9..dbba4c1b1 100644 --- a/src/main/java/net/minestom/server/event/EventNode.java +++ b/src/main/java/net/minestom/server/event/EventNode.java @@ -23,16 +23,14 @@ public class EventNode { this.type = type; } - private static final EventNode EMPTY = new EventNode<>(Event.class); - - public static EventNode create() { - return EMPTY; - } - public static EventNode create(@NotNull Class type) { return new EventNode<>(type); } + public static EventNode create() { + return create(Event.class); + } + public static EventNode conditional(@NotNull Class type, @NotNull Predicate predicate) { return new EventNodeConditional<>(type, predicate);