mirror of
https://github.com/PaperMC/Velocity.git
synced 2024-11-21 03:11:38 +08:00
Cache all types in EventTypeTracker
This commit is contained in:
parent
62d234bb26
commit
2124b5ec12
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user