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 modIds; public CallableUnsuppConfig(List 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; } }