blob: c98a651d1b30229ba2e102b9597806959e5e67fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package makamys.neodymium.util;
import makamys.neodymium.MixinConfigPlugin;
import makamys.neodymium.ducks.IMixinGameSettings_OptiFine;
import net.minecraft.client.Minecraft;
public class OFUtil {
private static boolean isOptiFinePresent = MixinConfigPlugin.class.getResource("/optifine/OptiFineTweaker.class") != null;
public static boolean isOptiFinePresent() {
return isOptiFinePresent;
}
public static boolean isFogOff() {
return isOptiFinePresent && getIsFogOff();
}
private static boolean getIsFogOff() {
return ((IMixinGameSettings_OptiFine)Minecraft.getMinecraft().gameSettings).getOfFogType() == 3;
}
}
|