Skip to content

Commit

Permalink
fix conflict detection
Browse files Browse the repository at this point in the history
Signed-off-by: isXander <[email protected]>
  • Loading branch information
isXander committed Aug 23, 2022
1 parent c17ebd4 commit 5dbcd10
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ plugins {
}

group = "dev.isxander"
version = "2.4.0"
version = "2.4.1"

repositories {
mavenCentral()
Expand Down
1 change: 1 addition & 0 deletions changelogs/2.4.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix conflict detection
3 changes: 2 additions & 1 deletion src/main/kotlin/dev/isxander/zoomify/Zoomify.kt
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ object Zoomify : ClientModInitializer {

fun onGameFinishedLoading() {
if (ZoomifySettings.firstLaunch) {
LOGGER.info("Zoomify detected first launch! Detecting conflicting keybindings!")
detectConflictingToast()
}
}
Expand Down Expand Up @@ -177,7 +178,7 @@ object Zoomify : ClientModInitializer {
if (zoomKey.isUnbound)
return

if (client.options.allKeys.any { it.equals(zoomKey) }) {
if (client.options.allKeys.any { it != zoomKey && it.equals(zoomKey) }) {
val toast = SystemToast.create(
client,
SystemToast.Type.CHAT_PREVIEW_WARNING,
Expand Down

0 comments on commit 5dbcd10

Please sign in to comment.