SteamWar/BauSystem
Archiviert
13
0

Merge sendTickPackets with sendPacketsToPlayer

Dieser Commit ist enthalten in:
jojo 2020-12-26 22:43:19 +01:00
Ursprung ac399896fc
Commit bdded55b86
2 geänderte Dateien mit 0 neuen und 8 gelöschten Zeilen

Datei anzeigen

@ -48,10 +48,6 @@ class TPSLimit_12 {
} }
static void sendTickPackets() { static void sendTickPackets() {
sendPacketsToPlayer(packets);
}
private static void sendPacketsToPlayer(List<? extends Packet<?>> packets) {
Bukkit.getOnlinePlayers().forEach(player -> { Bukkit.getOnlinePlayers().forEach(player -> {
PlayerConnection connection = ((CraftPlayer)player).getHandle().playerConnection; PlayerConnection connection = ((CraftPlayer)player).getHandle().playerConnection;
for (Packet<?> p : packets) { for (Packet<?> p : packets) {

Datei anzeigen

@ -48,10 +48,6 @@ class TPSLimit_15 {
} }
static void sendTickPackets() { static void sendTickPackets() {
sendPacketsToPlayer(packets);
}
private static void sendPacketsToPlayer(List<? extends Packet<?>> packets) {
Bukkit.getOnlinePlayers().forEach(player -> { Bukkit.getOnlinePlayers().forEach(player -> {
PlayerConnection connection = ((CraftPlayer)player).getHandle().playerConnection; PlayerConnection connection = ((CraftPlayer)player).getHandle().playerConnection;
for (Packet<?> p : packets) { for (Packet<?> p : packets) {