mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 13:57:59 +01:00
23 lines
No EOL
584 B
Java
23 lines
No EOL
584 B
Java
package com.minelittlepony.unicopia;
|
|
|
|
import com.minelittlepony.MineLittlePony;
|
|
|
|
public final class MineLP {
|
|
private static boolean checkComplete;
|
|
private static boolean modIsActive;
|
|
|
|
/**
|
|
* Returns true if mine little pony is present. That's all we need.
|
|
*/
|
|
public static boolean modIsActive() {
|
|
if (!checkComplete) {
|
|
try {
|
|
MineLittlePony.getInstance();
|
|
modIsActive = true;
|
|
} catch (Exception e) {
|
|
modIsActive = false;
|
|
}
|
|
}
|
|
return modIsActive;
|
|
}
|
|
} |