Skip to content

Commit 236b2c0

Browse files
committed
🛠️ Fix #220
1 parent b41a72b commit 236b2c0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/mods/groupNameMod.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { isCurrentFormat } from '../blueprintFormat'
12
import { PACKAGE } from '../constants'
23
import { toSafeFuntionName } from '../util/minecraftUtil'
34
import { createBlockbenchMod } from '../util/moddingTools'
@@ -9,7 +10,9 @@ createBlockbenchMod(
910
},
1011
context => {
1112
Group.prototype.saveName = function (this: Group, save?: boolean) {
12-
this.name = toSafeFuntionName(this.name)
13+
if (isCurrentFormat()) {
14+
this.name = toSafeFuntionName(this.name)
15+
}
1316
return context.originalRename.call(this, save)
1417
}
1518
return context

0 commit comments

Comments
 (0)