1
0
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:
KabanFriends
2025-10-29 05:36:14 +09:00
committed by GitHub
parent d8058766cc
commit 9d5e1cbcb3

View File

@@ -52,7 +52,7 @@ public interface PriorityOption extends ResourcePackOption<Integer> {
*/ */
static PriorityOption priority(int priority) { static PriorityOption priority(int priority) {
if (priority < -100 || priority > 100) { 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); return GeyserApi.api().provider(PriorityOption.class, priority);
} }