diff --git a/fml/src/main/java/net/minecraftforge/fml/common/discovery/ITypeDiscoverer.java b/fml/src/main/java/net/minecraftforge/fml/common/discovery/ITypeDiscoverer.java index 844d21bc0..885fd85a9 100644 --- a/fml/src/main/java/net/minecraftforge/fml/common/discovery/ITypeDiscoverer.java +++ b/fml/src/main/java/net/minecraftforge/fml/common/discovery/ITypeDiscoverer.java @@ -19,7 +19,8 @@ import net.minecraftforge.fml.common.ModContainer; public interface ITypeDiscoverer { - public static Pattern classFile = Pattern.compile("[^\\s]+\\.class$"); + // main class part, followed by an optional $ and an "inner class" part. $ cannot be last, otherwise scala breaks + public static Pattern classFile = Pattern.compile("[^\\s\\$]+(\\$[^\\s]+)?\\.class$"); public List discover(ModCandidate candidate, ASMDataTable table); }