Skip to content

Commit

Permalink
Update to new ReversionServer creation
Browse files Browse the repository at this point in the history
  • Loading branch information
bundabrg committed Aug 21, 2020
1 parent 6e45ada commit 3f2fce9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class BedrockEdition implements Edition {
@Override
public ReversionServer createReversionServer(InetSocketAddress address) {
plugin.getLogger().info("BedrockServer listening on " + address.toString());
ReversionServer server = new BedrockReversionServer("bedrock", BedrockProtocol.DEFAULT_BEDROCK_CODEC.getProtocolVersion(), address);
ReversionServer server = new BedrockReversionServer("bedrock", BedrockProtocol.DEFAULT_BEDROCK_CODEC, address);
server.setHandler(new BedrockServerEventHandler(GeyserConnector.getInstance()));
return server;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void onGeyserStart(GeyserStartEvent event) {
@Override
public ReversionServer createReversionServer(InetSocketAddress address) {
plugin.getLogger().info("EducationServer listening on " + address.toString());
ReversionServer server = new EducationReversionServer("bedrock", BedrockProtocol.DEFAULT_BEDROCK_CODEC.getProtocolVersion(), tokenManager, address);
ReversionServer server = new EducationReversionServer("bedrock", BedrockProtocol.DEFAULT_BEDROCK_CODEC, tokenManager, address);
server.setHandler(new BedrockServerEventHandler(GeyserConnector.getInstance()));
return server;
}
Expand Down

0 comments on commit 3f2fce9

Please sign in to comment.