3
0

Ignore FastCraft on loading for preventing crashes

This commit is contained in:
Prototik 2015-05-25 18:48:26 +07:00
parent ea868d4998
commit e7413d1814
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,18 @@
--- ../src-base/minecraft/cpw/mods/fml/common/discovery/ModDiscoverer.java
+++ ../src-work/minecraft/cpw/mods/fml/common/discovery/ModDiscoverer.java
@@ -147,6 +147,15 @@
Throwables.propagate(t);
}
}
+
+ java.util.Iterator<ModContainer> iterator = modList.iterator();
+ while(iterator.hasNext()) {
+ ModContainer container = iterator.next();
+ if ("FastCraft".equals(container.getModId())) {
+ FMLLog.log(Level.WARN, "Found FastCraft mod, removing it...");
+ iterator.remove();
+ }
+ }
return modList;
}

View File

@ -65,7 +65,18 @@
}
@@ -424,8 +450,11 @@
@@ -322,6 +348,10 @@
FMLRelaunchLog.fine("Not found coremod data in %s", coreMod.getName());
continue;
}
+ if ("fastcraft.LoadingPlugin".equals(fmlCorePlugin)) {
+ FMLRelaunchLog.warning("Found FastCraft coremod, ignoring...");
+ continue;
+ }
// Support things that are mod jars, but not FML mod jars
try
{
@@ -424,8 +454,11 @@
MCVersion requiredMCVersion = coreModClazz.getAnnotation(IFMLLoadingPlugin.MCVersion.class);
if (!Arrays.asList(rootPlugins).contains(coreModClass) && (requiredMCVersion == null || Strings.isNullOrEmpty(requiredMCVersion.value())))
{