Fixed generator switching with Optifine
Fixed Optifine crash