mirror of
https://github.com/Minestom/Minestom.git
synced 2024-10-03 00:47:28 +02:00
Player#getPlayerSynchronizationTickDelay comment
This commit is contained in:
parent
6869c834f3
commit
cdbf514918
@ -108,6 +108,12 @@ public class Player extends LivingEntity implements CommandSender {
|
||||
Player.playerSynchronizationGroup = playerSynchronizationGroup;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the number of tick between each position synchronization.
|
||||
*
|
||||
* @param viewersCount the player viewers count
|
||||
* @return the number of tick between each position synchronization.
|
||||
*/
|
||||
public static int getPlayerSynchronizationTickDelay(int viewersCount) {
|
||||
return viewersCount / playerSynchronizationGroup + 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user