From a8155323215bf4dc231561e788805c4dd795273f Mon Sep 17 00:00:00 2001 From: HollowHorizon <78298979+HollowHorizon@users.noreply.github.com> Date: Fri, 30 Aug 2024 12:06:21 +0300 Subject: [PATCH] =?UTF-8?q?=D1=8F=20=D0=B7=D0=B0=D0=B1=D1=8B=D0=BB,=20?= =?UTF-8?q?=D1=87=D1=82=D0=BE=20=D0=BF=D0=B8=D1=88=D1=83=20=D0=BD=D0=B0=20?= =?UTF-8?q?Kotlin=20=D0=B0=20=D0=BD=D0=B5=20Java...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hollowengine/client/ClientEvents.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/ru/hollowhorizon/hollowengine/client/ClientEvents.kt b/src/main/java/ru/hollowhorizon/hollowengine/client/ClientEvents.kt index 10602686..ed41474f 100644 --- a/src/main/java/ru/hollowhorizon/hollowengine/client/ClientEvents.kt +++ b/src/main/java/ru/hollowhorizon/hollowengine/client/ClientEvents.kt @@ -106,13 +106,13 @@ object ClientEvents { } fun hasOptifine(): Boolean { - Class clazz = null; - try { - clazz = Class.forName("net.optifine.shaders.Shaders"); - } catch (ClassNotFoundException e) { - // Оптифайна нет - } - return clazz != null; + var clazz: Class<*>? = null + try { + clazz = Class.forName("net.optifine.shaders.Shaders") + } catch (ClassNotFoundException e) { + // Оптифайна нет + } + return clazz != null; } @SubscribeEvent