mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-17 10:24:23 +01:00
Fixed client crash due to missing class
This commit is contained in:
parent
76c996c15f
commit
6f8a2ea72e
2 changed files with 7 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
|||
package com.minelittlepony.unicopia;
|
||||
|
||||
import com.minelittlepony.MineLittlePony;
|
||||
import com.minelittlepony.pony.data.PonyRace;
|
||||
|
||||
public final class MineLP {
|
||||
private static boolean checkComplete;
|
||||
|
@ -13,7 +14,9 @@ public final class MineLP {
|
|||
if (!checkComplete) {
|
||||
try {
|
||||
MineLittlePony.getInstance();
|
||||
modIsActive = true;
|
||||
|
||||
// always true, but this will throw if we don't have what we need.
|
||||
modIsActive = PonyRace.HUMAN.isHuman();
|
||||
} catch (Exception e) {
|
||||
modIsActive = false;
|
||||
}
|
||||
|
|
|
@ -5,9 +5,7 @@ import java.util.Map;
|
|||
|
||||
import com.google.common.base.Strings;
|
||||
import com.minelittlepony.pony.data.PonyRace;
|
||||
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
import com.minelittlepony.unicopia.forgebullshit.FUF;
|
||||
|
||||
public enum Race {
|
||||
/**
|
||||
|
@ -81,7 +79,8 @@ public enum Race {
|
|||
return def;
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
// Commented so we don't alert overlord forge
|
||||
@FUF(reason = "@SideOnly(Side.CLIENT)")
|
||||
public static Race fromPonyRace(PonyRace ponyRace) {
|
||||
switch (ponyRace) {
|
||||
case ALICORN:
|
||||
|
|
Loading…
Reference in a new issue