using System.Collections.Generic;
using System.IO;
using System.Linq;
-using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using Hjg.Pngcs;
using Hjg.Pngcs.Chunks;
-using Newtonsoft.Json;
-
using ProtoBuf;
using Vintagestory.API.Client;
Logger.Error("PNG Corruption file '{0}' - Reason: {1}", shardFile.Name, someEx);
continue;
}
+ catch (ProtoException protoEx)
+ {
+ Logger.Error("ProtoBuf invalid! file:'{0}' - Reason: {1}", shardFile.Name, protoEx);
+ continue;
+ }
}
}