Skip to content

Commit

Permalink
🐛 Fix an obvious bug suprisigly uncovered by MineHcraft ?
Browse files Browse the repository at this point in the history
  • Loading branch information
MathisFederico committed Jan 25, 2024
1 parent c4a4232 commit 4163cdb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/hcraft/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,7 @@ def _add_transformation_edges(
]
if len(alternative_transformations) == 1:
alt_transfo = alternative_transformations[0]
if alt_transfo.zone is None or not (
len(alt_transfo.zone) == 1 and alt_transfo.zone[0] == other_zone
):
if alt_transfo.zone is None or not alt_transfo.zone == other_zone:
in_items |= alt_transfo.min_required("player")
in_zone_items |= alt_transfo.min_required_zones_items
else:
Expand Down

0 comments on commit 4163cdb

Please sign in to comment.