mirror of
https://github.com/nkomarn/harbor.git
synced 2025-01-05 07:07:34 +01:00
Remove unnecessary Math#max call
This commit is contained in:
parent
93b3a0424e
commit
c5d76a70a2
@ -91,7 +91,7 @@ public class Messages implements Listener {
|
||||
return;
|
||||
}
|
||||
|
||||
sendWorldChatMessage(world, messages.get(random.nextInt(Math.max(0, messages.size()))));
|
||||
sendWorldChatMessage(world, messages.get(random.nextInt(messages.size())));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user