Skip to content

Commit

Permalink
fix(bukkit): use IntRange in LocationParser
Browse files Browse the repository at this point in the history
  • Loading branch information
Citymonstret committed Jan 20, 2024
1 parent 07f1661 commit f341793
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
package cloud.commandframework.bukkit.parser.location;

import cloud.commandframework.CommandComponent;
import cloud.commandframework.arguments.Range;
import cloud.commandframework.arguments.parser.ArgumentParseResult;
import cloud.commandframework.arguments.parser.ArgumentParser;
import cloud.commandframework.arguments.parser.ParserDescriptor;
Expand All @@ -37,6 +36,7 @@
import cloud.commandframework.context.CommandContext;
import cloud.commandframework.context.CommandInput;
import cloud.commandframework.exceptions.parsing.ParserException;
import cloud.commandframework.types.range.Range;
import java.util.List;
import java.util.stream.Collectors;
import org.apiguardian.api.API;
Expand All @@ -57,7 +57,7 @@
*/
public final class LocationParser<C> implements ArgumentParser<C, Location>, BlockingSuggestionProvider.Strings<C> {

private static final Range<Integer> SUGGESTION_RANGE = Range.of(Integer.MIN_VALUE, Integer.MAX_VALUE);
private static final Range<Integer> SUGGESTION_RANGE = Range.intRange(Integer.MIN_VALUE, Integer.MAX_VALUE);

/**
* Creates a new location parser.
Expand Down

0 comments on commit f341793

Please sign in to comment.