1
0
forked from xjboss/KCauldronX
KCauldronX/patches/cpw/mods/fml/common/discovery/ModDiscoverer.java.patch
2015-06-08 23:18:24 +07:00

31 lines
1022 B
Diff

--- ../src-base/minecraft/cpw/mods/fml/common/discovery/ModDiscoverer.java
+++ ../src-work/minecraft/cpw/mods/fml/common/discovery/ModDiscoverer.java
@@ -16,7 +16,9 @@
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
+
import org.apache.logging.log4j.Level;
+
import com.google.common.base.Throwables;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
@@ -148,6 +150,17 @@
}
}
+ if (!"false".equals(System.getProperty("kcauldron.fastcraft.disable", "true"))) {
+ 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;
}