Fixed #20
This commit is contained in:
parent
8937cc8182
commit
9e31287476
|
|
@ -93,6 +93,7 @@ public enum VelocityForgeClientConnectionPhase implements ClientConnectionPhase
|
|||
((OutboundSuccessHolder) connection.getChannel().pipeline().get(ForgeConstants.SERVER_SUCCESS_LISTENER))
|
||||
.sendPacket();
|
||||
connection.setState(StateRegistry.PLAY);
|
||||
((VelocityServer) Ambassador.getInstance().server).registerConnection(player);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import com.velocitypowered.proxy.protocol.packet.Disconnect;
|
|||
import com.velocitypowered.proxy.protocol.packet.LoginPluginMessage;
|
||||
import com.velocitypowered.proxy.protocol.packet.ServerLoginSuccess;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import org.adde0109.ambassador.Ambassador;
|
||||
import org.adde0109.ambassador.forge.ForgeConstants;
|
||||
import org.adde0109.ambassador.forge.ForgeFMLConnectionType;
|
||||
import org.adde0109.ambassador.forge.VelocityForgeBackendConnectionPhase;
|
||||
|
|
@ -55,6 +56,7 @@ public class ForgeLoginSessionHandler implements MinecraftSessionHandler {
|
|||
((OutboundSuccessHolder) connection.getChannel().pipeline().get(ForgeConstants.SERVER_SUCCESS_LISTENER))
|
||||
.sendPacket();
|
||||
connection.setState(StateRegistry.PLAY);
|
||||
((VelocityServer) Ambassador.getInstance().server).registerConnection(player);
|
||||
}
|
||||
|
||||
original.handle(packet);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user