Skip to content

Commit

Permalink
1.5.2 fix #20
Browse files Browse the repository at this point in the history
  • Loading branch information
Lykrast committed Apr 3, 2020
1 parent 886ff2d commit 4402fd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
org.gradle.jvmargs=-Xmx3G
mc_version=1.12.2
forge_version=14.23.5.2838
mod_version=1.5.1
mod_version=1.5.2
mod_reference=JETIF.java

jei_mc_version=1.12.2
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/lykrast/jetif/compat/CompatFluxNetworks.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ public void addRecipes(List<JETIFWrapper> list) {
private boolean shouldRegister() {
//Register if config is not found or if it is found and it's active
try {
Class<?> config = Class.forName("sonar.flux.FluxConfig");
Field field = ObfuscationReflectionHelper.findField(config, "enableFluxRecipe");
return (Boolean)field.get(null);
Class<?> config = Class.forName("fluxnetworks.FluxConfig");
Field recipe = ObfuscationReflectionHelper.findField(config, "enableFluxRecipe");
Field old = ObfuscationReflectionHelper.findField(config, "enableOldRecipe");
return (Boolean)recipe.get(null) && (Boolean)old.get(null);
} catch (Exception e) {
JETIF.logger.warn("Couldn't load config field for Flux Networks, report this issue on JETIF's GitHub");
e.printStackTrace();
Expand Down

0 comments on commit 4402fd0

Please sign in to comment.