Skip to content

Commit

Permalink
Fix for #185 (#186)
Browse files Browse the repository at this point in the history
* Update LoadingConfig.java

* Update ModConfig.java

* Update VanillaFixLoadingPlugin.java

* Update pt_br.lang

* Update en_us.lang
  • Loading branch information
HydrogenC authored and Runemoro committed May 3, 2019
1 parent 777f5be commit 031b1e7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/dimdev/vanillafix/LoadingConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class LoadingConfig {
public boolean modSupport = true;
public boolean profiler = true;
public boolean textureFixes = true;
public boolean blockstates = true;
public boolean blockStates = true;
public boolean dynamicResources = true;
public boolean improvedLaunchWrapper = true;

Expand All @@ -25,7 +25,7 @@ public LoadingConfig(File file) {
modSupport = config.get("fixes", "modSupport", true).getBoolean();
profiler = config.get("fixes", "profiler", true).getBoolean();
textureFixes = config.get("fixes", "textureFixes", true).getBoolean();
blockstates = config.get("fixes", "blockstates", true).getBoolean();
blockStates = config.get("fixes", "blockStates", true).getBoolean();
dynamicResources = config.get("fixes", "dynamicResources", true).getBoolean();
improvedLaunchWrapper = config.get("fixes", "improvedLaunchWrapper", true).getBoolean();
}
Expand Down
14 changes: 7 additions & 7 deletions src/main/java/org/dimdev/vanillafix/ModConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ public static class Fixes {
@RequiresMcRestart
public boolean textureFixes = true;

@Name("blockstates")
@LangKey("vanillafix.fixes.blockstates")
@Name("blockStates")
@LangKey("vanillafix.fixes.blockStates")
@RequiresMcRestart
public boolean blockstates = true;
public boolean blockStates = true;

@Name("dynamicresources")
@LangKey("vanillafix.fixes.dynamicresources")
@Name("dynamicResources")
@LangKey("vanillafix.fixes.dynamicResources")
@RequiresMcRestart
public boolean dynamicresources = true;
public boolean dynamicResources = true;
}

public static class Crashes {
Expand Down Expand Up @@ -85,4 +85,4 @@ public static void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event
ConfigManager.sync(event.getModID(), Type.INSTANCE);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ private static void initMixin() {
if (config.profiler) Mixins.addConfiguration("mixins.vanillafix.profiler.json");
if (config.textureFixes) Mixins.addConfiguration("mixins.vanillafix.textures.json");
if (config.modSupport) Mixins.addConfiguration("mixins.vanillafix.modsupport.json");
if (config.blockstates) Mixins.addConfiguration("mixins.vanillafix.blockstates.json");
if (config.blockStates) Mixins.addConfiguration("mixins.vanillafix.blockstates.json");
if (config.dynamicResources) Mixins.addConfiguration("mixins.vanillafix.dynamicresources.json");
}

Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/assets/vanillafix/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ vanillafix.fixes.profiler=Profiler improvements
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
vanillafix.fixes.textureFixes=Texture optimizations
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.
vanillafix.fixes.blockstates=Blockstate optimizations
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.
vanillafix.fixes.dynamicresources=Dynamic resources
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.
vanillafix.fixes.blockStates=Blockstate optimizations
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.
vanillafix.fixes.dynamicResources=Dynamic resources
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.

vanillafix.debug.switch_profiler.help=F3 + S = Cycle client <-> integrated server profiler
vanillafix.debug.switch_profiler.server=Using server profiler
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/assets/vanillafix/lang/pt_br.lang
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ vanillafix.fixes.profiler=Melhorias de análise
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.
vanillafix.fixes.textureFixes=Otimizar textura
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.
vanillafix.fixes.blockstates=Otimizar estados de blocos
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.
vanillafix.fixes.dynamicresources=Recursos dinâmicos
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.
vanillafix.fixes.blockStates=Otimizar estados de blocos
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.
vanillafix.fixes.dynamicResources=Recursos dinâmicos
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.

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

0 comments on commit 031b1e7

Please sign in to comment.