diff --git a/fml/src/main/java/cpw/mods/fml/common/network/FMLEmbeddedChannel.java b/fml/src/main/java/cpw/mods/fml/common/network/FMLEmbeddedChannel.java index 0f96063dd..4720623a5 100644 --- a/fml/src/main/java/cpw/mods/fml/common/network/FMLEmbeddedChannel.java +++ b/fml/src/main/java/cpw/mods/fml/common/network/FMLEmbeddedChannel.java @@ -57,7 +57,7 @@ public class FMLEmbeddedChannel extends EmbeddedChannel { String targetName = null; for (Entry entry : pipeline()) { - if (FMLRuntimeCodec.class.isInstance(entry.getValue())) + if (type.isInstance(entry.getValue())) { targetName = entry.getKey(); break;