Update26 #3

Merged
YoyoNow merged 35 commits from update26 into master 2026-08-13 09:23:04 +02:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 3b892899db - Show all commits
@@ -197,7 +197,7 @@ public interface Player extends
*
* @param reason component with the reason
*/
void disconnect(Component reason);
void disconnect(@NotNull Component reason);
/**
* Sends chat input onto the players current server as if they typed it into the client chat box.
@@ -111,6 +111,7 @@ import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.UUID;
@@ -645,7 +646,8 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player,
}
@Override
public void disconnect(Component reason) {
public void disconnect(@NotNull Component reason) {
Objects.requireNonNull(reason, "reason");
if (connection.eventLoop().inEventLoop()) {
disconnect0(reason, false);
} else {