13
0
geforkt von Mirrors/Velocity

Add missing null check here

Dieser Commit ist enthalten in:
Andrew Steinborn 2018-09-20 22:44:26 -04:00
Ursprung d06028e0f8
Commit 284f90183f

Datei anzeigen

@ -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);