Add missing null check here
This commit is contained in:
@@ -256,6 +256,7 @@ public class VelocityServer implements ProxyServer {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void broadcast(Component component) {
|
public void broadcast(Component component) {
|
||||||
|
Preconditions.checkNotNull(component, "component");
|
||||||
Chat chat = Chat.createClientbound(component);
|
Chat chat = Chat.createClientbound(component);
|
||||||
for (ConnectedPlayer player : connectionsByUuid.values()) {
|
for (ConnectedPlayer player : connectionsByUuid.values()) {
|
||||||
player.getConnection().write(chat);
|
player.getConnection().write(chat);
|
||||||
|
Reference in New Issue
Block a user