public static void onTick() {
synchronized(instance.decompressed) {
Iterator<CompressablePacket> i = instance.decompressed.iterator();
while (i.hasNext()) {
SpoutPacket packet = i.next();
try {
SpoutClient.getHandle().mcProfiler.startSection(packet.getPacketType().name());
packet.run(SpoutClient.getHandle().thePlayer.entityId);
i.remove();
} catch (Exception e) {
System.out.println("------------------------");
System.out.println("Unexpected Exception: " + packet.getPacketType());
e.printStackTrace();
System.out.println("------------------------");
} finally {
SpoutClient.getHandle().mcProfiler.endSection();
}