aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/features/debug
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-08-12 01:32:26 +0200
committerLinnea Gräf <nea@nea.moe>2025-08-12 01:32:26 +0200
commitf9686df919a6b80e7c788ec66f25dd8296e95c41 (patch)
tree5c1f313c5e9cd77954129fcf06165fe31580c7ea /src/main/kotlin/features/debug
parent6d0c39c46fe090cf4394fda61bfe6de50799cfc6 (diff)
parent98a080099683f9354ec4e02e47ff39b30caa8590 (diff)
downloadFirmament-f9686df919a6b80e7c788ec66f25dd8296e95c41.tar.gz
Firmament-f9686df919a6b80e7c788ec66f25dd8296e95c41.tar.bz2
Firmament-f9686df919a6b80e7c788ec66f25dd8296e95c41.zip
refactor: merge 1.21.5 changes back into 1.21.7
Diffstat (limited to 'src/main/kotlin/features/debug')
-rw-r--r--src/main/kotlin/features/debug/itemeditor/ExportRecipe.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/features/debug/itemeditor/ExportRecipe.kt b/src/main/kotlin/features/debug/itemeditor/ExportRecipe.kt
index 4f9acd8..9356dd3 100644
--- a/src/main/kotlin/features/debug/itemeditor/ExportRecipe.kt
+++ b/src/main/kotlin/features/debug/itemeditor/ExportRecipe.kt
@@ -185,7 +185,7 @@ object ExportRecipe {
}
fun generateName(name: String): SkyblockId {
- return SkyblockId(name.uppercase().replace(" ", "_").replace("(", "").replace(")", ""))
+ return SkyblockId(name.uppercase().replace(" ", "_").replace(Regex("[^A-Z_]+"), ""))
}
fun findStackableItemByName(name: String, fallbackToGenerated: Boolean = false): Pair<SkyblockId, Double>? {