From 2b99b1095ef9f57f9268af4d28d43c35b0eae2f1 Mon Sep 17 00:00:00 2001 From: DemonWav Date: Fri, 1 Apr 2016 01:54:53 -0500 Subject: [PATCH] <~Z750> sex it up for me --- Spigot-Server-Patches/0125-gottagofast.patch | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/Spigot-Server-Patches/0125-gottagofast.patch b/Spigot-Server-Patches/0125-gottagofast.patch index 995c699094..0d0a4e4c94 100644 --- a/Spigot-Server-Patches/0125-gottagofast.patch +++ b/Spigot-Server-Patches/0125-gottagofast.patch @@ -1,11 +1,11 @@ -From 094786ddb64163d121a930ee4d58b916c2c995bd Mon Sep 17 00:00:00 2001 +From 57c2f9101b897153d7afe526de98b4334ad925dd Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Fri, 1 Apr 2016 01:29:29 -0500 Subject: [PATCH] gottagofast diff --git a/src/main/java/org/spigotmc/TicksPerSecondCommand.java b/src/main/java/org/spigotmc/TicksPerSecondCommand.java -index 6d21c32..a9ff56d 100644 +index 6d21c32..dc1d134 100644 --- a/src/main/java/org/spigotmc/TicksPerSecondCommand.java +++ b/src/main/java/org/spigotmc/TicksPerSecondCommand.java @@ -6,6 +6,7 @@ import org.bukkit.command.CommandSender; @@ -28,21 +28,15 @@ index 6d21c32..a9ff56d 100644 } @Override -@@ -25,6 +31,13 @@ public class TicksPerSecondCommand extends Command +@@ -25,6 +31,7 @@ public class TicksPerSecondCommand extends Command // Paper start - Further improve tick handling double[] tps = org.bukkit.Bukkit.getTPS(); -+ // Paper start again for more fast - go fast -+ if (goFast) { -+ for ( int i = 0; i < tps.length; i++) { -+ tps[i] = tps[i] * 100; -+ } -+ } -+ // Paper end for more faster ++ if (goFast) tps = java.util.Arrays.stream(tps).map(t -> t * 100).toArray(); // Paper gotta go more faster super hot fire String[] tpsAvg = new String[tps.length]; for ( int i = 0; i < tps.length; i++) { -@@ -38,7 +51,15 @@ public class TicksPerSecondCommand extends Command +@@ -38,7 +45,15 @@ public class TicksPerSecondCommand extends Command private static String format(double tps) // Paper - Made static { @@ -60,5 +54,5 @@ index 6d21c32..a9ff56d 100644 } } -- -2.8.0.windows.1 +2.7.4