Stardew Valley: Fix a bug in equals between Or and And rules #4326

This commit is contained in:
Jouramie 2024-12-03 00:23:13 -05:00 committed by GitHub
parent 6f2e1c2a7e
commit 6896d631db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ class AggregatingStardewRule(BaseStardewRule, ABC):
def __eq__(self, other):
return (isinstance(other, type(self)) and self.combinable_rules == other.combinable_rules and
self.simplification_state.original_simplifiable_rules == self.simplification_state.original_simplifiable_rules)
self.simplification_state.original_simplifiable_rules == other.simplification_state.original_simplifiable_rules)
def __hash__(self):
if len(self.combinable_rules) + len(self.simplification_state.original_simplifiable_rules) > 5: