Skip to content

Commit

Permalink
the people in #general said this would fix a crash (Moulberry#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
NopoTheGamer authored Sep 27, 2022
1 parent 29bc337 commit c231bdc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,7 @@ public JsonObject getSearchedItemPage(int index) {
if (index < getSlotsXSize() * getSlotsYSize()) {
int actualIndex = index + getSlotsXSize() * getSlotsYSize() * page;
List<JsonObject> searchedItems = getSearchedItems();
if (actualIndex < searchedItems.size()) {
if (0 <= actualIndex && actualIndex < searchedItems.size()) {
return searchedItems.get(actualIndex);
} else {
return null;
Expand Down

0 comments on commit c231bdc

Please sign in to comment.