mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-28 16:06:06 +00:00
39 lines
806 B
Java
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;
|
|
}
|
|
|
|
}
|