From cc8812141d5f1d342fb7d8b51226b9de46f0e991 Mon Sep 17 00:00:00 2001 From: MrNavaStar Date: Tue, 13 Aug 2024 17:26:26 -0600 Subject: [PATCH] clean up --- .../main/java/me/mrnavastar/protoweaver/proxy/Velocity.java | 4 +--- .../main/java/me/mrnavastar/protoweaver/proxy/Waterfall.java | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/proxy/src/main/java/me/mrnavastar/protoweaver/proxy/Velocity.java b/proxy/src/main/java/me/mrnavastar/protoweaver/proxy/Velocity.java index 7c966d3..42eb337 100644 --- a/proxy/src/main/java/me/mrnavastar/protoweaver/proxy/Velocity.java +++ b/proxy/src/main/java/me/mrnavastar/protoweaver/proxy/Velocity.java @@ -57,9 +57,7 @@ public void onProxyShutdown(ProxyShutdownEvent event) { @Override public List getServers() { - return proxy.getAllServers().stream() - .map(server -> new ProtoServer(server.getServerInfo().getName(), server.getServerInfo().getAddress())) - .toList(); + return proxy.getAllServers().stream().map(server -> new ProtoServer(server.getServerInfo().getName(), server.getServerInfo().getAddress())).toList(); } @Override diff --git a/proxy/src/main/java/me/mrnavastar/protoweaver/proxy/Waterfall.java b/proxy/src/main/java/me/mrnavastar/protoweaver/proxy/Waterfall.java index 47645cb..ee73d8d 100644 --- a/proxy/src/main/java/me/mrnavastar/protoweaver/proxy/Waterfall.java +++ b/proxy/src/main/java/me/mrnavastar/protoweaver/proxy/Waterfall.java @@ -25,9 +25,7 @@ public void onDisable() { @Override public List getServers() { - return getProxy().getServersCopy().values().stream() - .map(server -> new ProtoServer(server.getName(), server.getSocketAddress())) - .toList(); + return getProxy().getServersCopy().values().stream().map(server -> new ProtoServer(server.getName(), server.getSocketAddress())).toList(); } @Override