Update Client.java

This commit is contained in:
kirillsaint 2023-10-26 01:20:36 +06:00
parent 21108dd843
commit a527252426

View File

@ -257,7 +257,12 @@ public class Client {
accountManager.init(); accountManager.init();
logger.info("STARTING > entity-culling"); logger.info("STARTING > entity-culling");
EventManager.register(new EntityCulling()); EventManager.register(new EntityCulling());
EntityCulling.SUPPORT_NEW_GL = GLContext.getCapabilities().OpenGL33; try {
EntityCulling.SUPPORT_NEW_GL = GLContext.getCapabilities().OpenGL33;
} catch(Exception err) {
Client.logger.catching(err);
EntityCulling.SUPPORT_NEW_GL = false;
}
EntityCulling.renderManager = Minecraft.getMinecraft().getRenderManager(); EntityCulling.renderManager = Minecraft.getMinecraft().getRenderManager();
logger.info("STARTING > screenshot-manager"); logger.info("STARTING > screenshot-manager");
EventManager.register(this.screenshotManager = new ScreenshotManager()); EventManager.register(this.screenshotManager = new ScreenshotManager());