From bdded55b868503907721003bd5be186330cdd672 Mon Sep 17 00:00:00 2001 From: jojo Date: Sat, 26 Dec 2020 22:43:19 +0100 Subject: [PATCH] Merge sendTickPackets with sendPacketsToPlayer --- .../src/de/steamwar/bausystem/commands/TPSLimit_12.java | 4 ---- .../src/de/steamwar/bausystem/commands/TPSLimit_15.java | 4 ---- 2 files changed, 8 deletions(-) diff --git a/BauSystem_12/src/de/steamwar/bausystem/commands/TPSLimit_12.java b/BauSystem_12/src/de/steamwar/bausystem/commands/TPSLimit_12.java index 3393ece..6af3b00 100644 --- a/BauSystem_12/src/de/steamwar/bausystem/commands/TPSLimit_12.java +++ b/BauSystem_12/src/de/steamwar/bausystem/commands/TPSLimit_12.java @@ -48,10 +48,6 @@ class TPSLimit_12 { } static void sendTickPackets() { - sendPacketsToPlayer(packets); - } - - private static void sendPacketsToPlayer(List> packets) { Bukkit.getOnlinePlayers().forEach(player -> { PlayerConnection connection = ((CraftPlayer)player).getHandle().playerConnection; for (Packet p : packets) { diff --git a/BauSystem_15/src/de/steamwar/bausystem/commands/TPSLimit_15.java b/BauSystem_15/src/de/steamwar/bausystem/commands/TPSLimit_15.java index 75b42f4..e0a39f6 100644 --- a/BauSystem_15/src/de/steamwar/bausystem/commands/TPSLimit_15.java +++ b/BauSystem_15/src/de/steamwar/bausystem/commands/TPSLimit_15.java @@ -48,10 +48,6 @@ class TPSLimit_15 { } static void sendTickPackets() { - sendPacketsToPlayer(packets); - } - - private static void sendPacketsToPlayer(List> packets) { Bukkit.getOnlinePlayers().forEach(player -> { PlayerConnection connection = ((CraftPlayer)player).getHandle().playerConnection; for (Packet p : packets) {