Fixed issue with Trinity + Multiworld

This commit is contained in:
codemann8
2022-01-02 16:04:27 -06:00
parent 5d6cef773f
commit d79a0c83fe

View File

@@ -2836,6 +2836,7 @@ class Spoiler(object):
} }
if self.world.custom: if self.world.custom:
for p in range(1, self.world.players + 1): for p in range(1, self.world.players + 1):
if p in self.world.customitemarray:
if self.world.customitemarray[p]["triforcepiecesgoal"] > 0: if self.world.customitemarray[p]["triforcepiecesgoal"] > 0:
self.metadata['triforcegoal'][p] = max(min(self.world.customitemarray[p]["triforcepiecesgoal"], 99), 1) self.metadata['triforcegoal'][p] = max(min(self.world.customitemarray[p]["triforcepiecesgoal"], 99), 1)
if self.world.customitemarray[p]["triforcepieces"] > 0: if self.world.customitemarray[p]["triforcepieces"] > 0: