Skip to content

Commit

Permalink
Fix adjuster reference
Browse files Browse the repository at this point in the history
  • Loading branch information
CaitSith2 committed Jun 5, 2021
1 parent 1d00ed4 commit 6ccb9d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,12 @@ def get_adjuster_settings(romfile: str) -> typing.Tuple[str, bool]:
f"Enter yes, no or never: ")
if adjust_wanted and adjust_wanted.startswith("y"):
if hasattr(adjuster_settings, "sprite_pool"):
from Adjuster import AdjusterWorld
from LttPAdjuster import AdjusterWorld
adjuster_settings.world = AdjusterWorld(getattr(adjuster_settings, "sprite_pool"))

adjusted = True
import Adjuster
_, romfile = Adjuster.adjust(adjuster_settings)
import LttPAdjuster
_, romfile = LttPAdjuster.adjust(adjuster_settings)

if hasattr(adjuster_settings, "world"):
delattr(adjuster_settings, "world")
Expand Down

0 comments on commit 6ccb9d2

Please sign in to comment.