Skip to content

Commit

Permalink
Hotfix recruitment failing for equal amounts of items (ldtteam#5423)
Browse files Browse the repository at this point in the history
  • Loading branch information
someaddons authored Jul 20, 2020
1 parent 214bfde commit 6df7f35
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public boolean onClientResponseTriggered(final ITextComponent response, final Pl
if (response.equals(recruitAnswer.getA()) && data instanceof IVisitorViewData)
{
if (InventoryUtils.getItemCountInItemHandler(new InvWrapper(player.inventory), ((IVisitorViewData) data).getRecruitCost().getItem())
> ((IVisitorViewData) data).getRecruitCost().getCount())
>= ((IVisitorViewData) data).getRecruitCost().getCount())
{
return super.onClientResponseTriggered(response, player, data, window);
}
Expand Down

0 comments on commit 6df7f35

Please sign in to comment.