mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-28 16:06:06 +00:00
Initial test of Gradle (not working yet)
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user