Write full class name in undefined packet error messages. (#4970)

This commit is contained in:
Weissmoon 2018-07-04 19:58:36 -07:00 committed by mezz
parent 58d570a6f1
commit 1902363eac

View file

@ -73,7 +73,7 @@ public abstract class FMLIndexedMessageToMessageCodec<A> extends MessageToMessag
Class<?> clazz = msg.getClass(); Class<?> clazz = msg.getClass();
if (!types.containsKey(clazz)) if (!types.containsKey(clazz))
{ {
throw new RuntimeException("Undefined discriminator for message type " + clazz.getSimpleName() + " in channel " + channel); throw new RuntimeException("Undefined discriminator for message type " + clazz.getName() + " in channel " + channel);
} }
byte discriminator = types.getByte(clazz); byte discriminator = types.getByte(clazz);
PacketBuffer buffer = new PacketBuffer(Unpooled.buffer()); PacketBuffer buffer = new PacketBuffer(Unpooled.buffer());