Skip to content

Commit

Permalink
Test update
Browse files Browse the repository at this point in the history
  • Loading branch information
Harleyoc1 committed Aug 14, 2023
1 parent e09f445 commit a2ac844
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,9 @@ public static List<JoCode> getCodes(ResourceLocation speciesName, int radius) {
@Nullable
public static JoCode getRandomCode(ResourceLocation speciesName, int radius, RandomSource random) {
final List<JoCode> list = getCodes(speciesName, radius);

if (list.isEmpty()) {
return null;
}

return list.get(random.nextInt(list.size()));
}

Expand Down

0 comments on commit a2ac844

Please sign in to comment.