mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-23 21:39:49 +00:00
38 lines
807 B
Java
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;
|
|
}
|
|
|
|
} |