-
-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It's not thread-safe. The plugin instead needs to be used. Fixes #254
- Loading branch information
1 parent
13e5373
commit 61dcc07
Showing
1 changed file
with
20 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,20 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Spottedleaf <[email protected]> | ||
Date: Wed, 31 Jul 2024 11:27:24 -0700 | ||
Subject: [PATCH] Disable spark profiler | ||
|
||
It's not thread-safe. The plugin instead needs to be used. | ||
|
||
diff --git a/src/main/java/io/papermc/paper/SparksFly.java b/src/main/java/io/papermc/paper/SparksFly.java | ||
index c7c396a7a94c35d973eb0796f8aba6e669ed5b7c..4e8ef2aeca4d9e67e53868de720a17bf08720ea0 100644 | ||
--- a/src/main/java/io/papermc/paper/SparksFly.java | ||
+++ b/src/main/java/io/papermc/paper/SparksFly.java | ||
@@ -108,7 +108,7 @@ public final class SparksFly { | ||
|
||
private void enable() { | ||
if (!this.enabled) { | ||
- if (GlobalConfiguration.get().spark.enabled) { | ||
+ if (false) { // Folia - region threading | ||
this.enabled = true; | ||
this.spark.enable(); | ||
} else { |