Skip to content

Commit

Permalink
Bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
toxicity188 committed Jan 22, 2025
1 parent f8ac5b6 commit 4c79b46
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 15 deletions.
4 changes: 2 additions & 2 deletions bootstrap/bukkit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ dependencies {
exclude("com.google.code.gson")
}
compileOnly("com.github.MilkBowl:VaultAPI:1.7.1")
compileOnly("com.github.SkriptLang:Skript:2.9.5")
compileOnly("com.github.SkriptLang:Skript:2.10.0")
compileOnly("net.skinsrestorer:skinsrestorer-api:15.5.1")
compileOnly("com.alessiodp.parties:parties-bukkit:3.2.16")
compileOnly("com.nexomc:nexo:0.9.0")
compileOnly("io.th0rgal:oraxen:1.187.0")
compileOnly("io.th0rgal:oraxen:1.188.0")
}

bukkitPluginYaml {
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ tasks {
hangar("ViaVersion", "5.2.1")
hangar("ViaBackwards", "5.2.1")
hangar("PlaceholderAPI", "2.11.6")
hangar("Skript", "2.9.5")
hangar("Skript", "2.10.0")
}
}
build {
Expand Down
1 change: 1 addition & 0 deletions changelog/1.12.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# BetterHud 1.12
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,8 @@ import kr.toxicity.hud.util.*
import net.kyori.adventure.text.Component
import net.kyori.adventure.text.minimessage.MiniMessage
import java.io.File
import java.text.DecimalFormat

object CommandManager : BetterHudManager {

private val numberDecimal = DecimalFormat("#,###")
private fun Number.withDecimal() = Component.text(numberDecimal.format(this))

val library = BetterCommand(DATA_FOLDER.subFolder("lang").apply {
PLUGIN.loadAssets("lang") { name, stream ->
val file = File(this, name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ object TextManagerImpl : BetterHudManager, TextManager {
}
}
}
debug(ConfigManager.DebugLevel.ASSETS, "Finalizing font text $saveName...")
debug(ConfigManager.DebugLevel.ASSETS, "Finalizing font text $saveName... (${charWidthMap.size.withDecimal()} of codepoints)")
val result = TextElement(internalName, scale, textList, charWidthMap, imageTextScaleMap, yamlObject)
synchronized(textCacheMap) {
textCacheMap[TextCache(internalName, images.keys, supportedLanguage)] = result
Expand Down
5 changes: 5 additions & 0 deletions dist/src/main/kotlin/kr/toxicity/hud/util/Plugins.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import kr.toxicity.hud.api.adapter.LocationWrapper
import kr.toxicity.hud.api.manager.ConfigManager
import kr.toxicity.hud.api.manager.ConfigManager.DebugLevel
import kr.toxicity.hud.manager.ConfigManagerImpl
import net.kyori.adventure.text.Component
import java.text.DecimalFormat

private val COMMA_FORMAT = DecimalFormat("#,###")
fun Number.withDecimal() = Component.text(COMMA_FORMAT.format(this))

val PLUGIN
get() = BetterHudAPI.inst()
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ org.gradle.jvmargs=-Xmx16384M -Dfile.encoding=UTF-8
org.gradle.caching=true
org.gradle.parallel=true

version=1.11.4
version=1.12

supported_version=1.21.2

minecraft_version=1.21.4
velocity_version=3.4.0
yarn_mappings=1.21.4+build.8
loader_version=0.16.10
fabric_version=0.114.2+1.21.4
fabric_version=0.114.3+1.21.4

kyori_mod_implementation=6.2.0
parchment=parchment-1.21.4:2025.01.05
parchment=parchment-1.21.4:2025.01.19

org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ bstats = "3.1.0"
betterCommand = "1.4.2"
resourceFactory = "1.2.0"
loom = "1.9-SNAPSHOT"
paperweight = "2.0.0-beta.13"
paperweight = "2.0.0-beta.14"
minotaur = "2.8.7"

asm = "9.7.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,6 @@ class NMSImpl : NMS {
override fun getEnderChest(): Inventory {
return player.enderChest
}
override fun getPotentialBedLocation(): Location? = player.potentialBedLocation

override fun isOp(): Boolean {
return player.isOp
}
Expand Down

0 comments on commit 4c79b46

Please sign in to comment.