diff --git a/common/src/main/java/com/github/khanshoaib3/minecraft_access/mixin/ScreenMixin.java b/common/src/main/java/com/github/khanshoaib3/minecraft_access/mixin/ScreenMixin.java index 7cf27b5a..2ab59ac4 100644 --- a/common/src/main/java/com/github/khanshoaib3/minecraft_access/mixin/ScreenMixin.java +++ b/common/src/main/java/com/github/khanshoaib3/minecraft_access/mixin/ScreenMixin.java @@ -47,8 +47,8 @@ private void addElementNarrationsHead(NarrationMessageBuilder builder, CallbackI callbackInfo.cancel(); } - ImmutableList immutableList = (ImmutableList)this.selectables.stream().filter(Selectable::isNarratable).collect(ImmutableList.toImmutableList()); - Screen.SelectedElementNarrationData selectedElementNarrationData = this.findSelectedElementData(immutableList, this.selected); + ImmutableList immutableList = this.selectables.stream().filter(Selectable::isNarratable).collect(ImmutableList.toImmutableList()); + Screen.SelectedElementNarrationData selectedElementNarrationData = findSelectedElementData(immutableList, this.selected); if (selectedElementNarrationData != null) { if (selectedElementNarrationData.selectType.isFocused()) { this.selected = selectedElementNarrationData.selectable; diff --git a/common/src/test/java/com/github/khanshoaib3/minecraft_access/utils/KeystrokeTest.java b/common/src/test/java/com/github/khanshoaib3/minecraft_access/utils/KeystrokeTest.java index ff84a8ac..601e0665 100644 --- a/common/src/test/java/com/github/khanshoaib3/minecraft_access/utils/KeystrokeTest.java +++ b/common/src/test/java/com/github/khanshoaib3/minecraft_access/utils/KeystrokeTest.java @@ -20,7 +20,7 @@ class KeystrokeTest { static class InitKeystrokeConditionSameAsExpected implements ArgumentsProvider { @Override - public Stream provideArguments(ExtensionContext extensionContext) throws Exception { + public Stream provideArguments(ExtensionContext extensionContext) { return Stream.of( Arguments.of(new MockKeystroke(true), true), Arguments.of(new MockKeystroke(false), false)