The KeyTracking object uses a Player reference as a map key. Entries are added to the map as needed and never removed. This prevents the collection of the EntityPlayer and things it references (e.g. the WorldClient).
Steps to reproduce problem:
create a new SP world with MrTJPCore + Project Red installed
jump (adds player reference to KeyTracking's map)
quit to main menu
reload the world from step 1.
Examining the heap e.g. with VisualVM shows 2 EntityPlayerSP objects. Repeating steps 2-4 creates another instance.
The KeyTracking object uses a Player reference as a map key. Entries are added to the map as needed and never removed. This prevents the collection of the EntityPlayer and things it references (e.g. the WorldClient).
Steps to reproduce problem:
Examining the heap e.g. with VisualVM shows 2 EntityPlayerSP objects. Repeating steps 2-4 creates another instance.