Fixed crash due to encorrect method signature

This commit is contained in:
Sollace 2019-01-08 10:34:05 +02:00
parent 07aadf15eb
commit 87e8885557
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ import net.minecraftforge.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public abstract class MineLittlePony { public abstract class MineLittlePony {
public static Object getConfig() { public static MineLittlePony getInstance() {
throw new RuntimeException(); throw new RuntimeException();
} }
} }

View file

@ -12,7 +12,7 @@ public final class MineLP {
public static boolean modIsActive() { public static boolean modIsActive() {
if (!checkComplete) { if (!checkComplete) {
try { try {
MineLittlePony.getConfig(); MineLittlePony.getInstance();
modIsActive = true; modIsActive = true;
} catch (Exception e) { } catch (Exception e) {
modIsActive = false; modIsActive = false;