Skip to content

Commit

Permalink
я забыл, что пишу на Kotlin а не Java...
Browse files Browse the repository at this point in the history
  • Loading branch information
HollowHorizon authored Aug 30, 2024
1 parent 71364eb commit a815532
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a815532

Please sign in to comment.