Migrator fix for 'Hipico'

This commit is contained in:
Raffson
2023-05-30 21:36:50 +02:00
parent 54a471fe82
commit 703da303ee

View File

@@ -6,6 +6,8 @@ import shutil
from pathlib import Path
from typing import Optional, TYPE_CHECKING, Any
import dcs.terrain.falklands.airports
from game.profiling import logged_duration
if TYPE_CHECKING:
@@ -48,6 +50,8 @@ class MigrationUnpickler(pickle.Unpickler):
if name == "Thunderstorm":
from game.weather.weather import Thunderstorm
return Thunderstorm
if name == "Hipico":
return dcs.terrain.falklands.airports.Hipico_Flying_Club
return super().find_class(module, name)
# fmt: on