package mantle.crash; import java.util.List; import net.minecraftforge.fml.common.ICrashCallable; // Crash handler for when an unsupported mod is running alongside us public class CallableUnsuppConfig implements ICrashCallable { private String modId; private List modIds; public CallableUnsuppConfig(String modId, List modIds) { this.modId = modId; this.modIds = modIds; } @Override public String getLabel() { return this.modId + " Environment"; } @Override public String call() throws Exception { String str = "DO NOT REPORT THIS CRASH! Unsupported mods in environment: "; Boolean firstEntry = true; for (String id : this.modIds) { str = str + (firstEntry ? id : ", " + id); firstEntry = false; } return str; } }