Skip to content

Commit

Permalink
Fix wrong comparison between KClass<T> and Class<T>
Browse files Browse the repository at this point in the history
  • Loading branch information
Rian8337 committed Mar 1, 2025
1 parent 298b35b commit 9570b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/reco1l/osu/hud/HUDSkinData.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import kotlin.reflect.KClass
data class HUDSkinData(val elements: List<HUDElementSkinData>) {


fun hasElement(type: Class<out HUDElement>) = elements.any { it.type == type }
fun hasElement(type: Class<out HUDElement>) = elements.any { it.type.java == type }


companion object {
Expand Down

0 comments on commit 9570b22

Please sign in to comment.