We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72e3735 commit c2b4b58Copy full SHA for c2b4b58
1 file changed
invui/src/main/java/xyz/xenondevs/invui/internal/util/ThreadCheck.java
@@ -11,7 +11,7 @@ public static void checkOwnedBy(Entity entity) {
11
if (Bukkit.isOwnedByCurrentRegion(entity))
12
return;
13
14
- throw new IllegalArgumentException(
+ throw new IllegalStateException(
15
"A method was called from an incorrect thread. On Paper the correct thread is the server thread. " +
16
"On Folia, the correct thread is the thread that owns the viewer (use the viewer's entity scheduler). " +
17
"Note that the absence of this exception does not imply correctness. In general and unless otherwise documented, " +
0 commit comments