Adding debug output to the protocol lib useage location to get more data.

This commit is contained in:
Olof Larsson 2013-03-01 13:10:56 +01:00
parent 148b09542d
commit b00eb28834

View File

@ -40,6 +40,8 @@ public class EntityPotionColorPacketAdapter extends PacketAdapter
@Override
public void onPacketSending(PacketEvent event)
{
try
{
// If the server is sending a meta-data packet to a sendee player...
// NOTE: That must be the case. We are listening to no other situation.
@ -69,4 +71,12 @@ public class EntityPotionColorPacketAdapter extends PacketAdapter
if (newColor != oldColor) watchable.setValue(newColor, false);
}
}
catch (Exception e)
{
System.out.println("Caught "+e.getClass().getName()+" exception in EntityPotionColorPacketAdapter#onPacketSending");
System.out.println("Message: "+e.getMessage());
System.out.println("Stack Trace:");
e.printStackTrace();
}
}
}