mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +00:00
More descripotive error if Patcher is passed invalid data for vanilla classes.
This commit is contained in:
1 parent
74501f509f
commit
b2033d642c
1 file changed
+5
@@ -89,6 +89,11 @@ public class ClassPatchManager {
|
||||
{
|
||||
FMLRelaunchLog.warning("Patcher expecting empty class data file for %s, but received non-empty", patch.targetClassName);
|
||||
}
|
||||
else if (patch.existsAtTarget && (inputData == null || inputData.length == 0))
|
||||
{
|
||||
FMLRelaunchLog.severe("Patcher expecting non-empty class data file for %s, but received empty.", patch.targetClassName);
|
||||
throw new RuntimeException(String.format("Patcher expecting non-empty class data file for %s, but received empty, your vanilla jar may be corrupt.", patch.targetClassName));
|
||||
}
|
||||
else
|
||||
{
|
||||
int inputChecksum = Hashing.adler32().hashBytes(inputData).asInt();
|
||||
|
||||
Reference in new issue
Block a user