Files
TinkersConstruct/src/main/java/tconstruct/util/CallableUnsuppConfig.java
T

39 lines
806 B
Java

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;
}
}