Skip to content

Commit

Permalink
fix: catch NoSuchMethodError in AdventureTranslatorIntegration
Browse files Browse the repository at this point in the history
  • Loading branch information
Apehum committed Sep 23, 2024
1 parent 714c366 commit 235a0cd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ class AdventureTranslatorIntegration(
init {
try {
GlobalTranslator.translator().addSource(this)
} catch (e: NoSuchMethodException) {
} catch (_: NoSuchMethodException) {
GlobalTranslator.get().addSource(this)
} catch (_: NoSuchMethodError) {
GlobalTranslator.get().addSource(this)
}
}
Expand Down

0 comments on commit 235a0cd

Please sign in to comment.