Initial test of Gradle (not working yet)

This commit is contained in:
Sunstrike committed 2013-11-21 16:13:51 +00:00
1 parent e8b7378831
commit cb87c836c8
519 files changed
+351

No files matched your search

@@ -0,0 +1,38 @@
package tconstruct.util;
import cpw.mods.fml.common.ICrashCallable;
import java.util.List;
// Crash handler for when an unsupported mod is running alongside us
public class CallableUnsuppConfig implements ICrashCallable
{
private List<String> modIds;
public CallableUnsuppConfig(List<String> modIds)
{
this.modIds = modIds;
}
@Override
public String getLabel ()
{
return "TConstruct Environment";
}
@Override
public String call () throws Exception
{
String str = "DO NOT REPORT THIS CRASH! Unsupported mods in environment: ";
Boolean firstEntry = true;
for (String id : modIds)
{
str = str + (firstEntry ? id : ", " + id);
firstEntry = false;
}
return str;
}
}