Fix memory leak when unloading worlds
The World instance wasn't freed from the forceSpawnMap and preventSpawnMap, keeping unloaded worlds around.
This commit is contained in:
parent
02d9b310a4
commit
a897b0b94b
1 changed files with 2 additions and 0 deletions
|
@ -561,6 +561,8 @@ public class GenericHandler {
|
|||
filledHandMapMap.remove(world);
|
||||
attackTaskMapMap.remove(world);
|
||||
targetTaskMapMap.remove(world);
|
||||
forceSpawnMap.remove(world);
|
||||
preventSpawnMap.remove(world);
|
||||
PotionEventHandlers.flightListMap.remove(world);
|
||||
PotionEventHandlers.noGravityListMap.remove(world);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue