Skip to content

Commit

Permalink
fix skytils compat notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Dec 25, 2023
1 parent 22d6e86 commit f2470e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod_name = Chatting
mod_id = chatting
mod_version = 1.5.2
mod_version = 1.5.3
mod_archives_name = Chatting

# Gradle Configuration -- DO NOT TOUCH THESE VALUES.
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/org/polyfrost/chatting/Chatting.kt
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ object Chatting {
}

private fun skytilsCompat(skytilsClass: Class<*>) {
val instance = skytilsClass.getDeclaredField("INSTANCE")
val instance = skytilsClass.getDeclaredField("INSTANCE").get(null)
val chatTabs = skytilsClass.getDeclaredField("chatTabs")
chatTabs.isAccessible = true
if (chatTabs.getBoolean(instance)) {
Expand Down

0 comments on commit f2470e4

Please sign in to comment.