aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches
diff options
context:
space:
mode:
authorShane Freeder <[email protected]>2017-04-22 02:37:58 -0500
committerZach Brown <[email protected]>2017-04-22 02:37:58 -0500
commit7afde8f75f1af583e7596fe11d5f09c73f3d02b9 (patch)
tree4dcdce24335b866e1cf4b4df93bcd3b0ba093503 /Spigot-Server-Patches
parent2db4e57e4d907b01eb00f8af42a27939fb844ed2 (diff)
downloadPaper-7afde8f75f1af583e7596fe11d5f09c73f3d02b9.tar.gz
Paper-7afde8f75f1af583e7596fe11d5f09c73f3d02b9.zip
Use lastIndexOf in Metrics class to futureproof
Because who's going to remember to change that line...
Diffstat (limited to 'Spigot-Server-Patches')
-rw-r--r--Spigot-Server-Patches/0004-Paper-Metrics.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/Spigot-Server-Patches/0004-Paper-Metrics.patch b/Spigot-Server-Patches/0004-Paper-Metrics.patch
index 9dafc4030e..bdc38432be 100644
--- a/Spigot-Server-Patches/0004-Paper-Metrics.patch
+++ b/Spigot-Server-Patches/0004-Paper-Metrics.patch
@@ -1,4 +1,4 @@
-From 830990ded44f082398d0a8dedce7c91b25db1243 Mon Sep 17 00:00:00 2001
+From a233372ddf7b145969a9e17e47dfb593997857c8 Mon Sep 17 00:00:00 2001
From: Zach Brown <[email protected]>
Date: Fri, 24 Mar 2017 23:56:01 -0500
Subject: [PATCH] Paper Metrics
@@ -15,7 +15,7 @@ decisions on behalf of the project.
diff --git a/src/main/java/com/destroystokyo/paper/Metrics.java b/src/main/java/com/destroystokyo/paper/Metrics.java
new file mode 100644
-index 000000000..91c2aae03
+index 000000000..9389f9a8c
--- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/Metrics.java
@@ -0,0 +1,603 @@
@@ -614,7 +614,7 @@ index 000000000..91c2aae03
+ String javaVersion = System.getProperty("java.version");
+ Map<String, Integer> entry = new HashMap<>();
+ entry.put(javaVersion, 1);
-+ map.put("Java " + javaVersion.substring(0, 3), entry);
++ map.put("Java " + javaVersion.substring(0, javaVersion.lastIndexOf('.')), entry);
+ return map;
+ }));
+ }