@@ -7,9 +7,9 @@ import { getModelPath } from './util/minecraft/resourcepack'
77import { Items } from './util/minecraft/items'
88import { tl } from './util/intl'
99
10- const genericEmptyErrorText = tl (
11- 'animatedJava.settings.generic.errors.emptyValue'
12- )
10+ function genericEmptyErrorText ( ) {
11+ return tl ( 'animatedJava.settings.generic.errors.emptyValue' )
12+ }
1313export let ForeignSettingTranslationKeys = { }
1414const UNASSIGNED = Symbol ( 'UNASSIGNED_CACHE' )
1515export const DefaultSettings = {
@@ -33,7 +33,7 @@ export const DefaultSettings = {
3333 }
3434 } else {
3535 d . isValid = false
36- d . error = genericEmptyErrorText
36+ d . error = genericEmptyErrorText ( )
3737 }
3838 return d
3939 } ,
@@ -105,7 +105,7 @@ export const DefaultSettings = {
105105 }
106106 } else {
107107 d . isValid = false
108- d . error = tl ( 'animatedJava.settings.generic.emptyValue' )
108+ d . error = genericEmptyErrorText ( )
109109 }
110110 return d
111111 } ,
@@ -146,9 +146,7 @@ export const DefaultSettings = {
146146 }
147147 } else {
148148 d . isValid = false
149- d . error = tl (
150- 'animatedJava.settings.generic.errors.emptyValue'
151- )
149+ d . error = genericEmptyErrorText ( )
152150 }
153151 return d
154152 } ,
@@ -185,16 +183,15 @@ export const DefaultSettings = {
185183 if ( `${ rigItem } .json` !== b . base ) {
186184 d . isValid = false
187185 d . error = tl (
188- 'animatedJava.settings.predicateFilePath.errors.notEqualToRigItem' , {
189- rigItem
186+ 'animatedJava.settings.predicateFilePath.errors.notEqualToRigItem' ,
187+ {
188+ rigItem,
190189 }
191190 )
192191 }
193192 } else {
194193 d . isValid = false
195- d . error = tl (
196- 'animatedJava.settings.generic.errors.emptyValue'
197- )
194+ d . error = genericEmptyErrorText ( )
198195 }
199196 return d
200197 } ,
@@ -526,7 +523,9 @@ class Settings {
526523
527524 registerPluginSettings ( exporterId , exporterSettingsKey , settings ) {
528525 DefaultSettings [ exporterSettingsKey ] = settings
529- ForeignSettingTranslationKeys [ exporterSettingsKey ] = `${ exporterId } .title`
526+ ForeignSettingTranslationKeys [
527+ exporterSettingsKey
528+ ] = `${ exporterId } .title`
530529 this . update (
531530 {
532531 [ exporterSettingsKey ] : settings ,
0 commit comments