From 2124b5ec1229731ef8a75d4a945813db406df759 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sat, 24 Jul 2021 18:30:13 -0400 Subject: [PATCH] Cache all types in EventTypeTracker --- .../java/com/velocitypowered/proxy/event/EventTypeTracker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/event/EventTypeTracker.java b/proxy/src/main/java/com/velocitypowered/proxy/event/EventTypeTracker.java index 35efbf70f..3a96d5313 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/event/EventTypeTracker.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/event/EventTypeTracker.java @@ -18,7 +18,6 @@ package com.velocitypowered.proxy.event; import com.google.common.collect.HashMultimap; -import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Multimap; import com.google.common.reflect.TypeToken; @@ -45,6 +44,7 @@ class EventTypeTracker { } friends.put(type, eventType); + friends.put(eventType, type); } return types; }