Fix player update not working with more than one player

This commit is contained in:
Blue (Lukas Rieger) 2020-08-17 00:55:05 +02:00
parent 0efd7f5770
commit ca384f14d2
4 changed files with 4 additions and 4 deletions

View File

@ -246,7 +246,7 @@ public class BukkitPlugin extends JavaPlugin implements ServerInterface, Listene
if (playerUpdateIndex >= 20 && playerUpdateIndex >= onlinePlayerCount) playerUpdateIndex = 0;
if (playerUpdateIndex < onlinePlayerCount) {
onlinePlayerList.get(i).update();
onlinePlayerList.get(playerUpdateIndex).update();
}
}
}

View File

@ -222,7 +222,7 @@ public class FabricMod implements ModInitializer, ServerInterface {
if (playerUpdateIndex >= 20 && playerUpdateIndex >= onlinePlayerCount) playerUpdateIndex = 0;
if (playerUpdateIndex < onlinePlayerCount) {
onlinePlayerList.get(i).update();
onlinePlayerList.get(playerUpdateIndex).update();
}
}
}

View File

@ -243,7 +243,7 @@ public class ForgeMod implements ServerInterface {
if (playerUpdateIndex >= 20 && playerUpdateIndex >= onlinePlayerCount) playerUpdateIndex = 0;
if (playerUpdateIndex < onlinePlayerCount) {
onlinePlayerList.get(i).update();
onlinePlayerList.get(playerUpdateIndex).update();
}
}
}

View File

@ -243,7 +243,7 @@ public class SpongePlugin implements ServerInterface {
if (playerUpdateIndex >= 20 && playerUpdateIndex >= onlinePlayerCount) playerUpdateIndex = 0;
if (playerUpdateIndex < onlinePlayerCount) {
onlinePlayerList.get(i).update();
onlinePlayerList.get(playerUpdateIndex).update();
}
}
}