Skip to content

Commit

Permalink
Fixed annoying compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Apr 20, 2022
1 parent d5ccd97 commit 723ab37
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ class BoostersPlugin : LibReforgePlugin(2036, 14269, "&e") {
}
)

this.registerHolderProvider { ListUtils.toSingletonList(activeBooster?.booster as? Holder) }
this.registerHolderProvider {
@Suppress("USELESS_CAST", "UNCHECKED_CAST") // No idea why it's not happy.
ListUtils.toSingletonList(activeBooster?.booster as? Holder) as Iterable<Holder>
}
}

override fun handleReloadAdditional() {
Expand Down

0 comments on commit 723ab37

Please sign in to comment.