forked from PaperMC/Folia
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c94790
commit ce70b0b
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: killerprojecte <[email protected]> | ||
Date: Thu, 13 Jul 2023 13:13:38 +0800 | ||
Subject: [PATCH] Brand DirtyFolia | ||
|
||
|
||
diff --git a/src/main/java/com/destroystokyo/paper/Metrics.java b/src/main/java/com/destroystokyo/paper/Metrics.java | ||
index b6f5b3fc1c0fc42c9e9611ecd5867a6dde45e4f0..0ca71e5d0777cdd4d85ef2482d7605c820623391 100644 | ||
--- a/src/main/java/com/destroystokyo/paper/Metrics.java | ||
+++ b/src/main/java/com/destroystokyo/paper/Metrics.java | ||
@@ -141,7 +141,7 @@ public class Metrics { | ||
// OS specific data | ||
String osName = System.getProperty("os.name"); | ||
osName += " (Using DirtyFolia)"; | ||
- String osArch = System.getProperty("os.arch"); | ||
+ String osArch = System.getProperty("os.arch") + "_dirty"; | ||
String osVersion = System.getProperty("os.version"); | ||
int coreCount = Runtime.getRuntime().availableProcessors(); | ||
|
||
@@ -616,7 +616,7 @@ public class Metrics { | ||
final String implVersion = org.bukkit.craftbukkit.Main.class.getPackage().getImplementationVersion(); | ||
if (implVersion != null) { | ||
final String buildOrHash = implVersion.substring(implVersion.lastIndexOf('-') + 1); | ||
- paperVersion = "git-Folia-%s-%s".formatted(Bukkit.getServer().getMinecraftVersion(), buildOrHash); // Folia - we have our own bstats page | ||
+ paperVersion = "git-DirtyFolia-%s-%s".formatted(Bukkit.getServer().getMinecraftVersion(), buildOrHash); // Folia - we have our own bstats page | ||
} else { | ||
paperVersion = "unknown"; | ||
} |