Closed MWHunter closed 2 years ago
additionally, it needs to be a concurrent hashmap if we use a cache in this way.
Fixed in https://github.com/retrooper/packetevents/commit/5d1b6a7d2acc011b205a8c1eead4b5a75e63f0e5 because a hashmap seems overkill for what we were trying to do.
It was memory leaking due to using Integers as keys. It was 17k in size after a minute. This cache should be re-added.