1
Fork 0
mirror of https://github.com/Steffo99/lihzahrd.git synced 2024-11-21 23:54:23 +00:00

Allow parsing only 1.4.4.9 worlds

No bandwidth to support multiple world versions
This commit is contained in:
Steffo 2023-03-05 23:50:44 +01:00
parent 4134becb24
commit 1060930d66

View file

@ -383,9 +383,9 @@ class World:
version = Version(f.int4()) version = Version(f.int4())
relogic = f.string(7) relogic = f.string(7)
savefile_type = f.uint1() savefile_type = f.uint1()
supported_versions = (Version("1.4.2.3"), Version("1.4.2.3")) supported_versions = (Version("1.4.4.9"), Version("1.4.4.9"))
if version not in supported_versions or relogic != "relogic" or savefile_type != 2: if version not in supported_versions or relogic != "relogic" or savefile_type != 2:
raise NotImplementedError("This parser can only read Terraria 1.4.2.3 save files.") raise NotImplementedError("This parser can only read Terraria 1.4.4.9 save files.")
revision = f.uint4() revision = f.uint4()
is_favorite = f.uint8() != 0 is_favorite = f.uint8() != 0