diff --git a/lihzahrd/world.py b/lihzahrd/world.py index a3ee400..608b08a 100644 --- a/lihzahrd/world.py +++ b/lihzahrd/world.py @@ -378,9 +378,21 @@ class World: rain = Rain(is_active=f.bool(), time_left=f.int4(), max_rain=f.single()) - hardmode_ore_1 = HardmodeTier1Ore(f.int4()) - hardmode_ore_2 = HardmodeTier2Ore(f.int4()) - hardmode_ore_3 = HardmodeTier3Ore(f.int4()) + try: + hardmode_ore_1 = HardmodeTier1Ore(f.int4()) + except ValueError: + hardmode_ore_1 = HardmodeTier1Ore.NOT_DETERMINED + + try: + hardmode_ore_2 = HardmodeTier2Ore(f.int4()) + except ValueError: + hardmode_ore_2 = HardmodeTier2Ore.NOT_DETERMINED + + try: + hardmode_ore_3 = HardmodeTier3Ore(f.int4()) + except ValueError: + hardmode_ore_3 = HardmodeTier3Ore.NOT_DETERMINED + altars_smashed = AltarsSmashed(count=smashed_altars_count, ore_tier1=hardmode_ore_1, ore_tier2=hardmode_ore_2,