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