Files
Mantle/src/mantle/internal/crash/CallableUnsuppConfig.java
T
2013-12-05 00:04:18 -05:00

38 lines
807 B
Java

package mantle.internal.crash;
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 "Mantle 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;
}
}