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

Revert "Handle hardmode ores sometimes having an unknown value"

This reverts commit abcd9aea57.
This commit is contained in:
Steffo 2019-08-21 13:50:44 +02:00
parent aab014f2ed
commit 7e5bc78006

View file

@ -391,21 +391,9 @@ class World:
rain = Rain(is_active=f.bool(), time_left=f.int4(), max_rain=f.single()) rain = Rain(is_active=f.bool(), time_left=f.int4(), max_rain=f.single())
try: hardmode_ore_1 = HardmodeTier1Ore(f.int4())
hardmode_ore_1 = HardmodeTier1Ore(f.int4()) hardmode_ore_2 = HardmodeTier2Ore(f.int4())
except ValueError: hardmode_ore_3 = HardmodeTier3Ore(f.int4())
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, altars_smashed = AltarsSmashed(count=smashed_altars_count,
ore_tier1=hardmode_ore_1, ore_tier1=hardmode_ore_1,
ore_tier2=hardmode_ore_2, ore_tier2=hardmode_ore_2,