Skip to content

Commit 031b1e7

Browse files
HydrogenCRunemoro
authored andcommitted
Fix for #185 (#186)
* Update LoadingConfig.java * Update ModConfig.java * Update VanillaFixLoadingPlugin.java * Update pt_br.lang * Update en_us.lang
1 parent 777f5be commit 031b1e7

5 files changed

Lines changed: 18 additions & 18 deletions

File tree

src/main/java/org/dimdev/vanillafix/LoadingConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class LoadingConfig {
1010
public boolean modSupport = true;
1111
public boolean profiler = true;
1212
public boolean textureFixes = true;
13-
public boolean blockstates = true;
13+
public boolean blockStates = true;
1414
public boolean dynamicResources = true;
1515
public boolean improvedLaunchWrapper = true;
1616

@@ -25,7 +25,7 @@ public LoadingConfig(File file) {
2525
modSupport = config.get("fixes", "modSupport", true).getBoolean();
2626
profiler = config.get("fixes", "profiler", true).getBoolean();
2727
textureFixes = config.get("fixes", "textureFixes", true).getBoolean();
28-
blockstates = config.get("fixes", "blockstates", true).getBoolean();
28+
blockStates = config.get("fixes", "blockStates", true).getBoolean();
2929
dynamicResources = config.get("fixes", "dynamicResources", true).getBoolean();
3030
improvedLaunchWrapper = config.get("fixes", "improvedLaunchWrapper", true).getBoolean();
3131
}

src/main/java/org/dimdev/vanillafix/ModConfig.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ public static class Fixes {
4646
@RequiresMcRestart
4747
public boolean textureFixes = true;
4848

49-
@Name("blockstates")
50-
@LangKey("vanillafix.fixes.blockstates")
49+
@Name("blockStates")
50+
@LangKey("vanillafix.fixes.blockStates")
5151
@RequiresMcRestart
52-
public boolean blockstates = true;
52+
public boolean blockStates = true;
5353

54-
@Name("dynamicresources")
55-
@LangKey("vanillafix.fixes.dynamicresources")
54+
@Name("dynamicResources")
55+
@LangKey("vanillafix.fixes.dynamicResources")
5656
@RequiresMcRestart
57-
public boolean dynamicresources = true;
57+
public boolean dynamicResources = true;
5858
}
5959

6060
public static class Crashes {
@@ -85,4 +85,4 @@ public static void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event
8585
ConfigManager.sync(event.getModID(), Type.INSTANCE);
8686
}
8787
}
88-
}
88+
}

src/main/java/org/dimdev/vanillafix/VanillaFixLoadingPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private static void initMixin() {
201201
if (config.profiler) Mixins.addConfiguration("mixins.vanillafix.profiler.json");
202202
if (config.textureFixes) Mixins.addConfiguration("mixins.vanillafix.textures.json");
203203
if (config.modSupport) Mixins.addConfiguration("mixins.vanillafix.modsupport.json");
204-
if (config.blockstates) Mixins.addConfiguration("mixins.vanillafix.blockstates.json");
204+
if (config.blockStates) Mixins.addConfiguration("mixins.vanillafix.blockstates.json");
205205
if (config.dynamicResources) Mixins.addConfiguration("mixins.vanillafix.dynamicresources.json");
206206
}
207207

src/main/resources/assets/vanillafix/lang/en_us.lang

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ vanillafix.fixes.profiler=Profiler improvements
7575
vanillafix.fixes.profiler.tooltip=Enable or disable improvements to the profiler (Alt + F3 pie chart): Split entities and tile entities by mod, add F3 + S for server profiler pie chart
7676
vanillafix.fixes.textureFixes=Texture optimizations
7777
vanillafix.fixes.textureFixes.tooltip=Enable or disable texture optimizations. This is the feature that increases the game's FPS, so it's not recommended to disable this.
78-
vanillafix.fixes.blockstates=Blockstate optimizations
79-
vanillafix.fixes.blockstates.tooltip=Enable or disable blockstate optimizations. This saves around 10 MB of memory per mod on average, but may cause incompatibilities with other mods.
80-
vanillafix.fixes.dynamicresources=Dynamic resources
81-
vanillafix.fixes.dynamicresources.tooltip=Enable or disable dynamic resources. This feature disables the loading of models, textures and sounds on init, and instead loads them during gameplay, resulting in a memory usage reduction of over 75%. It may cause incompatibility with other mods.
78+
vanillafix.fixes.blockStates=Blockstate optimizations
79+
vanillafix.fixes.blockStates.tooltip=Enable or disable blockstate optimizations. This saves around 10 MB of memory per mod on average, but may cause incompatibilities with other mods.
80+
vanillafix.fixes.dynamicResources=Dynamic resources
81+
vanillafix.fixes.dynamicResources.tooltip=Enable or disable dynamic resources. This feature disables the loading of models, textures and sounds on init, and instead loads them during gameplay, resulting in a memory usage reduction of over 75%. It may cause incompatibility with other mods.
8282

8383
vanillafix.debug.switch_profiler.help=F3 + S = Cycle client <-> integrated server profiler
8484
vanillafix.debug.switch_profiler.server=Using server profiler

src/main/resources/assets/vanillafix/lang/pt_br.lang

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ vanillafix.fixes.profiler=Melhorias de análise
7575
vanillafix.fixes.profiler.tooltip=Ativar ou desativar melhorias para a análise de depuração (Alt + F3): Dividir entidades e tile entities por mod, adicionar a combinação F3 + S para a depuração do servidor.
7676
vanillafix.fixes.textureFixes=Otimizar textura
7777
vanillafix.fixes.textureFixes.tooltip=Ativar ou desativar otimizações de textura. Esta funcionalidade aumenta a taxa de quadros do jogo, portanto, não é recomendado desativá-lo.
78-
vanillafix.fixes.blockstates=Otimizar estados de blocos
79-
vanillafix.fixes.blockstates.tooltip=Ativar ou desativar otimizações de estados de blocos. Este recurso pode reduzir o consumo de 10 MB de memória por mod, em média. Porém pode provocar problemas de incompatibilidade com outros mods.
80-
vanillafix.fixes.dynamicresources=Recursos dinâmicos
81-
vanillafix.fixes.dynamicresources.tooltip=Ativar ou desativar recursos dinâmicos. Esta funcionalidade desativa o carregamento de modelos, texturas e sons em início; os recursos citados são carregados durante o jogo, e sua memória de uso reduz-se em 75%. Isso pode causar incompatibilidades com outros mods.
78+
vanillafix.fixes.blockStates=Otimizar estados de blocos
79+
vanillafix.fixes.blockStates.tooltip=Ativar ou desativar otimizações de estados de blocos. Este recurso pode reduzir o consumo de 10 MB de memória por mod, em média. Porém pode provocar problemas de incompatibilidade com outros mods.
80+
vanillafix.fixes.dynamicResources=Recursos dinâmicos
81+
vanillafix.fixes.dynamicResources.tooltip=Ativar ou desativar recursos dinâmicos. Esta funcionalidade desativa o carregamento de modelos, texturas e sons em início; os recursos citados são carregados durante o jogo, e sua memória de uso reduz-se em 75%. Isso pode causar incompatibilidades com outros mods.
8282

8383
vanillafix.debug.switch_profiler.help=F3 + S = Alternar entre análise do cliente <-> servidor integrado
8484
vanillafix.debug.switch_profiler.server=Utilizando análise do servidor

0 commit comments

Comments
 (0)