fix: negative hard joint handling

This commit is contained in:
TrèsAbhi committed 2024-01-12 19:58:02 -06:00
1 parent 6dfb727fa2
commit 062e6e9626
5 files changed
+20 -18

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
export function nameToArmorId(name: string) {
const match = name.match(/.+_armor_(\d+)/);
const group1 = match![1];
return parseInt(group1);
}