aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin
diff options
context:
space:
mode:
authorJacob <admin@kath.lol>2025-07-14 19:28:22 +0800
committerLinnea Gräf <nea@nea.moe>2025-07-14 14:47:11 +0200
commit4cd6602805c052ad96b4a39a72b187478d3e501a (patch)
treece98b1cde017c123bf7e23978fa572ad6653e36f /src/main/kotlin
parent649aac85c3feef069b9e8f0f81ea9c9b321ccdb0 (diff)
downloadFirmament-master.tar.gz
Firmament-master.tar.bz2
Firmament-master.zip
fix: Item/NPC Exporter allows non alphabet or number chars in IDHEADmaster
Diffstat (limited to 'src/main/kotlin')
-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>? {