auto disable fancy graphics if enabled
This commit is contained in:
+24
@@ -56,6 +56,11 @@ import net.minecraft.network.chat.TextComponent;
|
||||
import net.minecraft.util.profiling.Profiler;
|
||||
#endif
|
||||
|
||||
#if MC_VER <= MC_1_21_10
|
||||
import net.minecraft.client.GraphicsStatus;
|
||||
#else
|
||||
#endif
|
||||
|
||||
/**
|
||||
* A singleton that wraps the Minecraft object.
|
||||
*
|
||||
@@ -270,6 +275,25 @@ public class MinecraftClientWrapper implements IMinecraftClientWrapper, IMinecra
|
||||
#endif
|
||||
}
|
||||
|
||||
public void disableFabulousTransparency()
|
||||
{
|
||||
#if MC_VER <= MC_1_18_2
|
||||
GraphicsStatus oldGraphicsStatus = MINECRAFT.options.graphicsMode;
|
||||
if (oldGraphicsStatus == GraphicsStatus.FABULOUS)
|
||||
{
|
||||
MINECRAFT.options.graphicsMode = GraphicsStatus.FANCY;
|
||||
}
|
||||
#elif MC_VER <= MC_1_21_10
|
||||
GraphicsStatus oldGraphicsStatus = MINECRAFT.options.graphicsMode().get();
|
||||
if (oldGraphicsStatus == GraphicsStatus.FABULOUS)
|
||||
{
|
||||
MINECRAFT.options.graphicsMode().set(GraphicsStatus.FANCY);
|
||||
}
|
||||
#else
|
||||
MINECRAFT.options.improvedTransparency().set(false);
|
||||
#endif
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
|
||||
|
||||
+1
-1
Submodule coreSubProjects updated: 2d70388587...291c0470ad
Reference in New Issue
Block a user