Fix scala mods, Closes #621

This commit is contained in:
diesieben07 2015-03-28 16:00:50 +01:00
parent 68c3a85fef
commit 8f5bb75ef2
1 changed files with 2 additions and 1 deletions

View File

@ -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<ModContainer> discover(ModCandidate candidate, ASMDataTable table);
}