Save-compat fix for Bas_100 being renamed to Vuojarvi

This commit is contained in:
Raffson 2024-08-15 22:15:09 +02:00
parent 5a25b97a9e
commit bc3ec4ffb9
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -87,6 +87,9 @@ class MigrationUnpickler(pickle.Unpickler):
elif name == "Olenegorsk": elif name == "Olenegorsk":
from dcs.terrain.kola.airports import Olenya from dcs.terrain.kola.airports import Olenya
return Olenya return Olenya
if name == "Bas_100":
from dcs.terrain.kola.airports import Vuojarvi
return Vuojarvi
if module in ["dcs.vehicles", "dcs.ships"]: if module in ["dcs.vehicles", "dcs.ships"]:
try: try:
return super().find_class(module, name) return super().find_class(module, name)