MinecraftModDevelopmentMods/MMDLib

Memory leak in ItemMMDArmor

Opened this issue · 0 comments

private static final Map<EntityPlayer, AtomicLong> playerUpdateTimestampMap = new HashMap<>();
private static final Map<EntityPlayer, AtomicInteger> playerUpdateCountMap = new HashMap<>();

these map are leaking EntityPlayer instances. Please switch to a Map<UUID, AtomicInteger> and Map<UUID, AtomicLong>