Jump to content

[1.12.2] How can my mod tell if OptiFine is loaded?


Recommended Posts

OptiFine doesn't like two of my TESRs, as explained in this post: https://www.minecraftforge.net/forum/topic/71841-1122-optifine-causes-crash-when-rendering-obj-in-tesr/. Since I'm becoming increasingly dubious that there's a good answer for dealing with that issue I'd like to just change the way I render things if OptiFine is loaded. This presents an issue because apparently OptiFine isn't actually loaded by Forge so something like 


doesn't tell me anything. So I ask, is there any reasonable way for my mod to tell whether OptiFine is loaded? 

And yes, It has already occurred to me that I can just have a config option asking the user if optifine is loaded (and I will be doing that if I can't do anything else), but seeing as if the user happens not to look at the configs and has optifine it will crash their world, i'd like a more aggressive solution.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.