mirror of
https://github.com/nkomarn/harbor.git
synced 2025-02-01 20:31:28 +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;
|
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