Skip to content

Commit

Permalink
= Visitors Macro - Possible fix for randomly not taking profit rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
May2Beez committed Dec 27, 2023
1 parent f5ff45c commit bdfa341
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.3.1
version=2.3.2
shouldRelease=true
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ private boolean moveAwayIfPlayerTooClose() {
private void checkIfCurrentVisitorIsProfitable() {
Optional<Tuple<String, String>> profitableReward = currentRewards.stream().filter(item -> {
String name = StringUtils.stripControlCodes(item.getFirst());
return profitRewards.stream().anyMatch(reward -> reward.contains(name));
return profitRewards.stream().anyMatch(reward -> reward.contains(name) || name.contains(reward));
}).findFirst();
if (profitableReward.isPresent()) {
LogUtils.sendDebug("[Visitors Macro] The visitor is profitable");
Expand Down

0 comments on commit bdfa341

Please sign in to comment.