mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-25 06:14:45 +00:00
Cleaned up and updated forge version.
This commit is contained in:
1 parent
6a363b3981
commit
812ef0bf2d
107 files changed
+15
-31
No files matched your search
@@ -0,0 +1,41 @@
|
||||
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<String> modIds;
|
||||
|
||||
public CallableUnsuppConfig(String modId, List<String> 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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user