mirror of
https://github.com/Minestom/Minestom.git
synced 2024-07-03 09:54:56 +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