From 7e5bc780064b4c9fe07e63f072afbfd32c74bf19 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 21 Aug 2019 13:50:44 +0200 Subject: [PATCH] Revert "Handle hardmode ores sometimes having an unknown value" This reverts commit abcd9aea579eafecc600f6139db85919a778d750. --- lihzahrd/world.py | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/lihzahrd/world.py b/lihzahrd/world.py index 9571a96..2388f12 100644 --- a/lihzahrd/world.py +++ b/lihzahrd/world.py @@ -391,21 +391,9 @@ class World: rain = Rain(is_active=f.bool(), time_left=f.int4(), max_rain=f.single()) - 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 - + hardmode_ore_1 = HardmodeTier1Ore(f.int4()) + hardmode_ore_2 = HardmodeTier2Ore(f.int4()) + hardmode_ore_3 = HardmodeTier3Ore(f.int4()) altars_smashed = AltarsSmashed(count=smashed_altars_count, ore_tier1=hardmode_ore_1, ore_tier2=hardmode_ore_2,