mirror of
https://github.com/Steffo99/lihzahrd.git
synced 2024-11-25 01:24:21 +00:00
Allow parsing only 1.4.4.9 worlds
No bandwidth to support multiple world versions
This commit is contained in:
parent
4134becb24
commit
1060930d66
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue