From 7a59345eb7b8775efdd087feaa0b464753c6dea4 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Tue, 14 Sep 2021 15:31:45 +0200 Subject: [PATCH] Hide feature seeds in Timings --- .../server/0801-Configurable-feature-seeds.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/patches/server/0801-Configurable-feature-seeds.patch b/patches/server/0801-Configurable-feature-seeds.patch index 8f76fe54d2..aecdb2adbd 100644 --- a/patches/server/0801-Configurable-feature-seeds.patch +++ b/patches/server/0801-Configurable-feature-seeds.patch @@ -5,6 +5,19 @@ Subject: [PATCH] Configurable feature seeds Co-authored-by: Thonk <30448663+ExcessiveAmountsOfZombies@users.noreply.github.com> +diff --git a/src/main/java/co/aikar/timings/TimingsExport.java b/src/main/java/co/aikar/timings/TimingsExport.java +index 7d44abcb4fff9717a1af55879deb7eb9c2d9e7e9..e29b0a90019b12bd6586ad0f7b5314f307e527ba 100644 +--- a/src/main/java/co/aikar/timings/TimingsExport.java ++++ b/src/main/java/co/aikar/timings/TimingsExport.java +@@ -274,7 +274,7 @@ public class TimingsExport extends Thread { + JSONObject object = new JSONObject(); + for (String key : config.getKeys(false)) { + String fullKey = (parentKey != null ? parentKey + "." + key : key); +- if (fullKey.equals("database") || fullKey.equals("settings.bungeecord-addresses") || TimingsManager.hiddenConfigs.contains(fullKey) || key.startsWith("seed-") || key.equals("worldeditregentempworld")) { ++ if (fullKey.equals("database") || fullKey.equals("settings.bungeecord-addresses") || TimingsManager.hiddenConfigs.contains(fullKey) || key.startsWith("seed-") || key.equals("worldeditregentempworld") || key.equals("feature-seeds")) { + continue; + } + final Object val = config.get(key); diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java index e1f386cccdf0d2f6831c86667230e0bc8ee39cc9..78024e0b05fd24a0c3340f052fe8eb40191afdd6 100644 --- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java