Skip to content

Commit

Permalink
[2.2.0-beta7] 1.21.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsFlicker committed Dec 31, 2024
1 parent 82b31f7 commit be3a09e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
java
id("io.izzel.taboolib") version "2.0.18"
id("io.izzel.taboolib") version "2.0.22"
id("org.jetbrains.kotlin.jvm") version "1.8.22"
}

Expand Down Expand Up @@ -37,7 +37,7 @@ subprojects {
install(Bukkit, BungeeCord, Velocity)
}
version {
taboolib = "6.2.0-beta20"
taboolib = "6.2.1-df22fb1"
coroutines = null
// isSkipKotlin = true
// isSkipKotlinRelocate = true
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group=me.arasple.mc.trchat
version=2.2.0-beta6
version=2.2.0-beta7
kotlin.incremental=true
kotlin.incremental.java=true
kotlin.incremental.useClasspathSnapshot=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package me.arasple.mc.trchat.module.internal.hook.impl
import dev.lone.itemsadder.api.FontImages.FontImageWrapper
import me.arasple.mc.trchat.module.internal.hook.HookAbstract
import org.bukkit.entity.Player
import taboolib.module.nms.MinecraftVersion.majorLegacy

/**
* @author ItsFlicker
Expand All @@ -14,14 +15,14 @@ class HookItemsAdder : HookAbstract() {
if (!isHooked) {
return message
}
try {
return if (player == null) {
return try {
if (player == null || majorLegacy >= 12005) {
FontImageWrapper.replaceFontImages(message)
} else {
FontImageWrapper.replaceFontImages(player, message)
}
} catch (_: Throwable) {
return message
message
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import taboolib.common.util.asList
import taboolib.common.util.orNull
import taboolib.common.util.unsafeLazy
import taboolib.common5.Coerce
import taboolib.common5.FileWatcher
import taboolib.library.configuration.ConfigurationSection
import taboolib.module.configuration.util.getMap
import taboolib.module.lang.sendLang
Expand Down Expand Up @@ -72,11 +71,12 @@ object Loader {
Channel.channels.clear()

filterChannelFiles(folder).forEach {
if (FileWatcher.INSTANCE.hasListener(it)) {
loadChannel(it)
} else {
FileWatcher.INSTANCE.addSimpleListener(it, { loadChannel(it) }, true)
}
// if (FileWatcher.INSTANCE.hasListener(it)) {
// loadChannel(it)
// } else {
// FileWatcher.INSTANCE.addSimpleListener(it, { loadChannel(it) }, true)
// }
loadChannel(it)
}

TrChatReloadEvent.Channel(Channel.channels).call()
Expand Down

0 comments on commit be3a09e

Please sign in to comment.