mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 22:44:23 +00:00
Add Bukkit to EnvChecks.
This commit is contained in:
1 parent
bd3fa5137a
commit
e133c11aea
1 file changed
+10
@@ -34,6 +34,16 @@ public class EnvironmentChecks {
|
||||
modIds.add("optifine");
|
||||
}
|
||||
|
||||
try {
|
||||
Class cl = Class.forName("org.bukkit.Bukkit");
|
||||
if (cl != null) {
|
||||
TConstruct.logger.severe("[Environment Checks] Bukkit implementation detected. This may be crashy. Bukkit implementations include Craftbukkit and MCPC+.");
|
||||
modIds.add("bukkit");
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
// No Bukkit in environment.
|
||||
}
|
||||
|
||||
if (modIds.size() == 0) {
|
||||
ICrashCallable callable = new CallableSuppConfig();
|
||||
FMLCommonHandler.instance().registerCrashCallable(callable);
|
||||
|
||||
Reference in new issue
Block a user