13
0
geforkt von Mirrors/Velocity

Cache all types in EventTypeTracker

Dieser Commit ist enthalten in:
Andrew Steinborn 2021-07-24 18:30:13 -04:00
Ursprung 62d234bb26
Commit 2124b5ec12

Datei anzeigen

@ -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;
} }