mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-19 14:59:27 +00:00
Fix incorrect priority range validation message in PriorityOption (#5939)
This commit is contained in:
@@ -52,7 +52,7 @@ public interface PriorityOption extends ResourcePackOption<Integer> {
|
||||
*/
|
||||
static PriorityOption priority(int priority) {
|
||||
if (priority < -100 || priority > 100) {
|
||||
throw new IllegalArgumentException("Priority must be between 0 and 10 inclusive!");
|
||||
throw new IllegalArgumentException("Priority must be between -100 and 100 inclusive!");
|
||||
}
|
||||
return GeyserApi.api().provider(PriorityOption.class, priority);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user