Write full class name in undefined packet error messages. (#4970)
This commit is contained in:
parent
58d570a6f1
commit
1902363eac
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue