Fix stupid hardcoding derp

This commit is contained in:
Christian 2014-01-03 23:04:24 -05:00
parent d102e694c8
commit 7f05ffa511

View file

@ -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;