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
|
@ -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…
Reference in a new issue