Fix stupid hardcoding derp

This commit is contained in:
Christian committed 2014-01-03 23:04:24 -05:00
1 parent d102e694c8
commit 7f05ffa511
1 file changed
+1 -1
@@ -57,7 +57,7 @@ public class FMLEmbeddedChannel extends EmbeddedChannel {
String targetName = null;
for (Entry<String, ChannelHandler> entry : pipeline())
{
if (FMLRuntimeCodec.class.isInstance(entry.getValue()))
if (type.isInstance(entry.getValue()))
{
targetName = entry.getKey();
break;