Skip to content

Commit

Permalink
fix incompatibility with tier with level less than 0
Browse files Browse the repository at this point in the history
closes #292
  • Loading branch information
deirn committed Sep 14, 2024
1 parent a1f5b44 commit 1b65d1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class FabricApiService extends ApiService {

@Override
public @Nullable TagKey<Block> getTierTag(Tier tier) {
return tier.getLevel() == 0 ? null : MiningLevelManager.getBlockTag(tier.getLevel());
return tier.getLevel() <= 0 ? null : MiningLevelManager.getBlockTag(tier.getLevel());
}

}

0 comments on commit 1b65d1e

Please sign in to comment.