Cache all types in EventTypeTracker

This commit is contained in:
Andrew Steinborn
2021-07-24 18:30:13 -04:00
parent 62d234bb26
commit 2124b5ec12

View File

@@ -18,7 +18,6 @@
package com.velocitypowered.proxy.event; package com.velocitypowered.proxy.event;
import com.google.common.collect.HashMultimap; import com.google.common.collect.HashMultimap;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet; import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Multimap; import com.google.common.collect.Multimap;
import com.google.common.reflect.TypeToken; import com.google.common.reflect.TypeToken;
@@ -45,6 +44,7 @@ class EventTypeTracker {
} }
friends.put(type, eventType); friends.put(type, eventType);
friends.put(eventType, type);
} }
return types; return types;
} }