Xray wont work on optifine 1.18.2 for me
xray was working when i had optifine on 1.12.2 for 2b2t with no mods but when i had mods when i switched back to 1.18.2 it wasnt working, i removed all mods except for optifine and no mods was causing xray to not work, i think its a optifine setting that i have on considering the fact all my optifine settings are at the lowest (most of them) for better fps, which setting is it that i need to change for it to work? heres a screenshot of all my mods and my optifine settings just in case you need it to analyze.
OptiFine breaks opacity and legit mode, and most likely won't work at all with a shader (even internal).
Make sure shaders are set to off and that the xray settings are default (.s xray reset)