1
0
forked from xjboss/KCauldronX
KCauldronX/patches/cpw/mods/fml/common/discovery/ModDiscoverer.java.patch

31 lines
1022 B
Diff
Raw Normal View History

--- ../src-base/minecraft/cpw/mods/fml/common/discovery/ModDiscoverer.java
+++ ../src-work/minecraft/cpw/mods/fml/common/discovery/ModDiscoverer.java
2015-05-29 10:24:31 +00:00
@@ -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 @@
}
}
2015-05-29 10:24:31 +00:00
+ if (!"false".equals(System.getProperty("kcauldron.fastcraft.disable", "true"))) {
2015-06-01 14:32:10 +00:00
+ java.util.Iterator<ModContainer> iterator = modList.iterator();
+ while(iterator.hasNext()) {
2015-06-08 16:18:24 +00:00
+ ModContainer container = iterator.next();
+ if ("FastCraft".equals(container.getModId())) {
+ FMLLog.log(Level.WARN, "Found FastCraft mod, removing it...");
+ iterator.remove();
+ }
2015-06-01 14:32:10 +00:00
+ }
+ }
2015-05-29 10:24:31 +00:00
+
return modList;
}
2015-05-29 10:24:31 +00:00