Skip to content

Commit

Permalink
Stardew Valley: Fix a bug in equals between Or and And rules #4326
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouramie authored Dec 3, 2024
1 parent 6f2e1c2 commit 6896d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/stardew_valley/stardew_rule/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def __repr__(self):

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:
Expand Down

0 comments on commit 6896d63

Please sign in to comment.