AutoWorld: if any world data_version is set to 0, set it for the main datapackage

This commit is contained in:
Fabian Dill
2021-08-22 04:22:34 +02:00
parent 6a3d1fcaf4
commit b07fc80f3f
2 changed files with 8 additions and 1 deletions

View File

@@ -34,3 +34,7 @@ network_data_package = {
"version": sum(world.data_version for world in AutoWorldRegister.world_types.values()),
"games": games,
}
# Set entire datapackage to version 0 if any of them are set to 0
if any(not world.data_version for world in AutoWorldRegister.world_types.values()):
network_data_package["version"] = 0