Revised the way that I fixed that last bug and added a compatibility check for Optifine.