FML 3 marker
This commit is contained in:
parent
3172c5f672
commit
e1acc461a7
|
|
@ -23,8 +23,8 @@ public class FMLMarkerAdder extends MessageToMessageEncoder<Handshake> {
|
||||||
MinecraftConnection connection = (MinecraftConnection) ctx.pipeline().get(Connections.HANDLER);
|
MinecraftConnection connection = (MinecraftConnection) ctx.pipeline().get(Connections.HANDLER);
|
||||||
VelocityServerConnection serverConnection = (VelocityServerConnection) connection.getAssociation();
|
VelocityServerConnection serverConnection = (VelocityServerConnection) connection.getAssociation();
|
||||||
|
|
||||||
if (serverConnection.getPlayer().getConnection().getType() instanceof ForgeFMLConnectionType) {
|
if (serverConnection.getPlayer().getConnection().getType() instanceof ForgeFMLConnectionType FMLType) {
|
||||||
msg.setServerAddress(msg.getServerAddress() + ForgeConstants.FML2Marker);
|
msg.setServerAddress(msg.getServerAddress() + (FMLType == ForgeConstants.ForgeFML3 ? ForgeConstants.FML3Marker : ForgeConstants.FML2Marker));
|
||||||
}
|
}
|
||||||
out.add(msg);
|
out.add(msg);
|
||||||
ctx.pipeline().remove(this);
|
ctx.pipeline().remove(this);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user