Skip to content

Commit

Permalink
Fixed JDA version checking
Browse files Browse the repository at this point in the history
  • Loading branch information
onixiya1337 committed May 14, 2024
1 parent b3d2a03 commit 8dd82bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ baseGroup=com.jelly.farmhelperv2
mcVersion=1.8.9
modid=farmhelperv2
modName=FarmHelper
version=2.6.22-pre3
version=2.6.22-pre4
shouldRelease=true
2 changes: 1 addition & 1 deletion src/main/java/com/jelly/farmhelperv2/FarmHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public static boolean checkIfJDAVersionCorrect() {
Optional<ModContainer> modContainer = Loader.instance().getActiveModList().stream()
.filter(mod -> "farmhelperjdadependency".equals(mod.getModId()))
.findFirst();
isJDAVersionCorrect = modContainer.map(container -> container.getVersion().equals("1.0.1")).orElse(false);
isJDAVersionCorrect = modContainer.map(container -> container.getVersion().equals("1.0.2")).orElse(false);
return isJDAVersionCorrect;
}
}

0 comments on commit 8dd82bc

Please sign in to comment.