Adding debug output to the protocol lib useage location to get more data.
This commit is contained in:
parent
148b09542d
commit
b00eb28834
@ -40,6 +40,8 @@ public class EntityPotionColorPacketAdapter extends PacketAdapter
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPacketSending(PacketEvent event)
|
public void onPacketSending(PacketEvent event)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
// If the server is sending a meta-data packet to a sendee player...
|
// 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.
|
// 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);
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user