Skip to content

Commit

Permalink
solve request issues (#10232)
Browse files Browse the repository at this point in the history
solve request issues
  • Loading branch information
Raycoms committed Sep 19, 2024
1 parent d9eaaf6 commit dc422b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ public static int hasBuildingEnoughElseCount(@NotNull final IBuilding provider,

if (totalCount >= count)
{
return Integer.MAX_VALUE;
return totalCount;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public boolean canResolveRequest(@NotNull final IRequestManager manager, final I
}
}
}
return totalCount >= requestToCheck.getRequest().getCount();
return totalCount >= requestToCheck.getRequest().getMinimumCount();
}
catch (Exception e)
{
Expand Down

0 comments on commit dc422b6

Please sign in to comment.