Skip to content

Commit

Permalink
Fixed ViaBedrock transfer provider
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Jan 2, 2024
1 parent 3d18dad commit d6dff89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class ViaProxyTransferProvider extends TransferProvider {

@Override
public void connectToServer(UserConnection user, InetSocketAddress newAddress) {
ViaBedrockTransferHolder.addTempRedirect(user.getChannel(), newAddress);
ViaBedrockTransferHolder.addTempRedirect(ProxyConnection.fromChannel(user.getChannel()).getC2P(), newAddress);
try {
ProxyConnection.fromUserConnection(user).kickClient("§aThe server transferred you to another server §7(§e" + newAddress.getHostName() + ":" + newAddress.getPort() + "§7)§a. Please reconnect to ViaProxy.");
} catch (CloseAndReturn ignored) {
Expand Down

0 comments on commit d6dff89

Please sign in to comment.