Begining of Optifine resolution

Added if statements to change the render to optifine compliant needs an optifine Flag in lbcore