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

Change error message

This commit is contained in:
Steffo 2020-06-08 02:47:10 +02:00
parent 7e0112a779
commit 906f2094b8
Signed by: steffo
GPG key ID: 896A80F55F7C97F0
2 changed files with 2 additions and 2 deletions

View file

@ -4,4 +4,4 @@ from lihzahrd.timer import Timer
with Timer("Parse sample world"): with Timer("Parse sample world"):
world = lihzahrd.World.create_from_file("The_Gateway_To_A_New_Future.wld") world = lihzahrd.World.create_from_file("The_Gateway_To_A_New_Future.wld")
breakpoint() ...

View file

@ -376,7 +376,7 @@ class World:
savefile_type = f.uint1() savefile_type = f.uint1()
supported_versions = (Version("1.4.0.4"), Version("1.4.0.5")) supported_versions = (Version("1.4.0.4"), Version("1.4.0.5"))
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.0.4 save files.") raise NotImplementedError("This parser can only read Terraria 1.4.0.4 or 1.4.0.5 save files.")
revision = f.uint4() revision = f.uint4()
is_favorite = f.uint8() != 0 is_favorite = f.uint8() != 0