From a527252426b4d73b841dfb562f9d8a4c57ad0742 Mon Sep 17 00:00:00 2001 From: kirillsaint Date: Thu, 26 Oct 2023 01:20:36 +0600 Subject: [PATCH] Update Client.java --- src/main/java/net/silentclient/client/Client.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/silentclient/client/Client.java b/src/main/java/net/silentclient/client/Client.java index 4faaf3e..4d02ae9 100644 --- a/src/main/java/net/silentclient/client/Client.java +++ b/src/main/java/net/silentclient/client/Client.java @@ -257,7 +257,12 @@ public class Client { accountManager.init(); logger.info("STARTING > entity-culling"); 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(); logger.info("STARTING > screenshot-manager"); EventManager.register(this.screenshotManager = new ScreenshotManager());