Ignore FastCraft on loading for preventing crashes
This commit is contained in:
parent
ea868d4998
commit
e7413d1814
@ -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;
|
||||||
|
}
|
@ -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);
|
MCVersion requiredMCVersion = coreModClazz.getAnnotation(IFMLLoadingPlugin.MCVersion.class);
|
||||||
if (!Arrays.asList(rootPlugins).contains(coreModClass) && (requiredMCVersion == null || Strings.isNullOrEmpty(requiredMCVersion.value())))
|
if (!Arrays.asList(rootPlugins).contains(coreModClass) && (requiredMCVersion == null || Strings.isNullOrEmpty(requiredMCVersion.value())))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user