Skip to content

Commit

Permalink
говенный краш фикс?? надо протестить
Browse files Browse the repository at this point in the history
  • Loading branch information
ulybaka1337 committed Oct 10, 2024
1 parent 483e27a commit c50b6ab
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ public void onAttackEntity(@NotNull EventAttack event) {

int n;

if (words.isEmpty() && mode.getValue() == Messages.Custom) {
disable();
return;
}


if (mode.getValue() == Messages.Default) n = (int) Math.floor(Math.random() * WORDS.length);
else n = (int) Math.floor(Math.random() * words.size());

Expand Down

0 comments on commit c50b6ab

Please sign in to comment.