Merge sendTickPackets with sendPacketsToPlayer
Dieser Commit ist enthalten in:
Ursprung
ac399896fc
Commit
bdded55b86
@ -48,10 +48,6 @@ class TPSLimit_12 {
|
||||
}
|
||||
|
||||
static void sendTickPackets() {
|
||||
sendPacketsToPlayer(packets);
|
||||
}
|
||||
|
||||
private static void sendPacketsToPlayer(List<? extends Packet<?>> packets) {
|
||||
Bukkit.getOnlinePlayers().forEach(player -> {
|
||||
PlayerConnection connection = ((CraftPlayer)player).getHandle().playerConnection;
|
||||
for (Packet<?> p : packets) {
|
||||
|
@ -48,10 +48,6 @@ class TPSLimit_15 {
|
||||
}
|
||||
|
||||
static void sendTickPackets() {
|
||||
sendPacketsToPlayer(packets);
|
||||
}
|
||||
|
||||
private static void sendPacketsToPlayer(List<? extends Packet<?>> packets) {
|
||||
Bukkit.getOnlinePlayers().forEach(player -> {
|
||||
PlayerConnection connection = ((CraftPlayer)player).getHandle().playerConnection;
|
||||
for (Packet<?> p : packets) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren