mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-18 11:29:29 +00:00
Abort cloak render with Optifine.
This commit is contained in:
1 parent
e763bb6363
commit
cc241aab67
2 files changed
+7
-2
No files matched your search
@@ -13,6 +13,9 @@ import java.util.List;
|
||||
public class EnvironmentChecks
|
||||
{
|
||||
|
||||
// Used for aborting cloak renders with Optifine present (it misbehaves)
|
||||
public static boolean hasOptifine = false;
|
||||
|
||||
private EnvironmentChecks()
|
||||
{
|
||||
} // Singleton
|
||||
@@ -33,8 +36,9 @@ public class EnvironmentChecks
|
||||
|
||||
if (FMLCommonHandler.instance().getSide() == Side.CLIENT && FMLClientHandler.instance().hasOptifine() || Loader.isModLoaded("optifine"))
|
||||
{
|
||||
TConstruct.logger.severe("[Environment Checks] Optifine detected. This is a Bad Thing(tm) and can crash Minecraft due to an Optifine bug during TCon armor renders!");
|
||||
TConstruct.logger.severe("[Environment Checks] Optifine detected. This is a Bad Thing(tm) and can crash Minecraft due to an Optifine bug during TCon armor renders! Capes also disabled.");
|
||||
modIds.add("optifine");
|
||||
hasOptifine = true;
|
||||
}
|
||||
|
||||
try
|
||||
|
||||
Reference in new issue
Block a user