We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b41a72b commit 236b2c0Copy full SHA for 236b2c0
src/mods/groupNameMod.ts
@@ -1,3 +1,4 @@
1
+import { isCurrentFormat } from '../blueprintFormat'
2
import { PACKAGE } from '../constants'
3
import { toSafeFuntionName } from '../util/minecraftUtil'
4
import { createBlockbenchMod } from '../util/moddingTools'
@@ -9,7 +10,9 @@ createBlockbenchMod(
9
10
},
11
context => {
12
Group.prototype.saveName = function (this: Group, save?: boolean) {
- this.name = toSafeFuntionName(this.name)
13
+ if (isCurrentFormat()) {
14
+ this.name = toSafeFuntionName(this.name)
15
+ }
16
return context.originalRename.call(this, save)
17
}
18
return context
0 commit comments