Fixed some OptiFine compatibility.