mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
TUNIC: Add exception handling to deal with duplicate apworlds (#4634)
* Add exception handling to deal with duplicate apworlds * Update worlds/tunic/__init__.py
This commit is contained in:
@@ -110,6 +110,13 @@ class TunicWorld(World):
|
|||||||
ut_can_gen_without_yaml = True # class var that tells it to ignore the player yaml
|
ut_can_gen_without_yaml = True # class var that tells it to ignore the player yaml
|
||||||
|
|
||||||
def generate_early(self) -> None:
|
def generate_early(self) -> None:
|
||||||
|
try:
|
||||||
|
int(self.settings.disable_local_spoiler)
|
||||||
|
except AttributeError:
|
||||||
|
raise Exception("You have a TUNIC APWorld in your lib/worlds folder and custom_worlds folder.\n"
|
||||||
|
"This would cause an error at the end of generation.\n"
|
||||||
|
"Please remove one of them, most likely the one in lib/worlds.")
|
||||||
|
|
||||||
check_options(self)
|
check_options(self)
|
||||||
|
|
||||||
if self.options.logic_rules >= LogicRules.option_no_major_glitches:
|
if self.options.logic_rules >= LogicRules.option_no_major_glitches:
|
||||||
|
|||||||
Reference in New Issue
Block a user