This commit is contained in:
Adrian Bergqvist 2023-03-26 21:45:17 +02:00
parent 8937cc8182
commit 9e31287476
No known key found for this signature in database
GPG Key ID: FAE7D8EDE225E686
2 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,7 @@ public enum VelocityForgeClientConnectionPhase implements ClientConnectionPhase
((OutboundSuccessHolder) connection.getChannel().pipeline().get(ForgeConstants.SERVER_SUCCESS_LISTENER)) ((OutboundSuccessHolder) connection.getChannel().pipeline().get(ForgeConstants.SERVER_SUCCESS_LISTENER))
.sendPacket(); .sendPacket();
connection.setState(StateRegistry.PLAY); connection.setState(StateRegistry.PLAY);
((VelocityServer) Ambassador.getInstance().server).registerConnection(player);
} }
} }
return true; return true;

View File

@ -11,6 +11,7 @@ import com.velocitypowered.proxy.protocol.packet.Disconnect;
import com.velocitypowered.proxy.protocol.packet.LoginPluginMessage; import com.velocitypowered.proxy.protocol.packet.LoginPluginMessage;
import com.velocitypowered.proxy.protocol.packet.ServerLoginSuccess; import com.velocitypowered.proxy.protocol.packet.ServerLoginSuccess;
import net.kyori.adventure.text.Component; import net.kyori.adventure.text.Component;
import org.adde0109.ambassador.Ambassador;
import org.adde0109.ambassador.forge.ForgeConstants; import org.adde0109.ambassador.forge.ForgeConstants;
import org.adde0109.ambassador.forge.ForgeFMLConnectionType; import org.adde0109.ambassador.forge.ForgeFMLConnectionType;
import org.adde0109.ambassador.forge.VelocityForgeBackendConnectionPhase; import org.adde0109.ambassador.forge.VelocityForgeBackendConnectionPhase;
@ -55,6 +56,7 @@ public class ForgeLoginSessionHandler implements MinecraftSessionHandler {
((OutboundSuccessHolder) connection.getChannel().pipeline().get(ForgeConstants.SERVER_SUCCESS_LISTENER)) ((OutboundSuccessHolder) connection.getChannel().pipeline().get(ForgeConstants.SERVER_SUCCESS_LISTENER))
.sendPacket(); .sendPacket();
connection.setState(StateRegistry.PLAY); connection.setState(StateRegistry.PLAY);
((VelocityServer) Ambassador.getInstance().server).registerConnection(player);
} }
original.handle(packet); original.handle(packet);