Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
null cannot be cast to non-null type com.demonwav.mcdev.MinecraftSettings.UnderlineType
  • Loading branch information
RedNesto committed Dec 16, 2023
1 parent 3006f6a commit aeffcb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/MinecraftConfigurable.kt
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ class MinecraftConfigurable : Configurable {
settings.isShowEventListenerGutterIcons = showEventListenerGutterCheckBox.isSelected
settings.isShowChatColorGutterIcons = showChatGutterIconsCheckBox.isSelected
settings.isShowChatColorUnderlines = showChatColorUnderlinesCheckBox.isSelected
settings.underlineType = chatColorUnderlinesComboBox.selectedItem as MinecraftSettings.UnderlineType
settings.underlineType = chatColorUnderlinesComboBox.selectedItem as? MinecraftSettings.UnderlineType
?: MinecraftSettings.UnderlineType.DOTTED
}

override fun reset() {
Expand Down

0 comments on commit aeffcb0

Please sign in to comment.