Skip to content

Commit

Permalink
Actually use the mixin class icon setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Earthcomputer committed Jul 24, 2024
1 parent da4a3cd commit 7d1cd3a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

package com.demonwav.mcdev.platform.mixin.framework

import com.demonwav.mcdev.MinecraftSettings
import com.demonwav.mcdev.asset.PlatformAssets
import com.demonwav.mcdev.platform.mixin.util.isMixin
import com.intellij.ide.IconProvider
Expand All @@ -28,5 +29,7 @@ import com.intellij.psi.PsiElement

class MixinIconProvider : IconProvider() {
override fun getIcon(element: PsiElement, flags: Int) =
PlatformAssets.MIXIN_ICON.takeIf { element is PsiClass && element.isMixin }
PlatformAssets.MIXIN_ICON.takeIf {
MinecraftSettings.instance.mixinClassIcon && element is PsiClass && element.isMixin
}
}

0 comments on commit 7d1cd3a

Please sign in to comment.