Skip to content

Commit

Permalink
Fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Spottedleaf committed Dec 2, 2024
1 parent 227b50f commit 815dd7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions patches/server/0017-Region-profiler.patch
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@ index df15b1139e71dfe10b8f24ec6d235b99f6d5006a..b1c07e582dbf0a203cf734fdbcd8387a
@Override
diff --git a/src/main/java/io/papermc/paper/threadedregions/commands/CommandProfiler.java b/src/main/java/io/papermc/paper/threadedregions/commands/CommandProfiler.java
new file mode 100644
index 0000000000000000000000000000000000000000..3c6f0359bd6196eeb497bc2a43a82186b545df4e
index 0000000000000000000000000000000000000000..dbc6ffd8fec4570de4abdb3aa0a16d0e0cc09353
--- /dev/null
+++ b/src/main/java/io/papermc/paper/threadedregions/commands/CommandProfiler.java
@@ -0,0 +1,245 @@
Expand Down Expand Up @@ -1314,7 +1314,7 @@ index 0000000000000000000000000000000000000000..3c6f0359bd6196eeb497bc2a43a82186
+ final RegionizedProfiler profiler = new RegionizedProfiler(
+ ThreadLocalRandom.current().nextLong(), (long)Math.ceil(time * 1.0E9),
+ (final RegionizedProfiler.ProfileResults results) -> {
+ MCUtil.asyncExecutor.execute(() -> {
+ MCUtil.ASYNC_EXECUTOR.execute(() -> {
+ writeResults(results);
+ sender.sendMessage(
+ Component.text()
Expand All @@ -1336,7 +1336,7 @@ index 0000000000000000000000000000000000000000..3c6f0359bd6196eeb497bc2a43a82186
+ final ChunkPos center = region.getCenterChunk();
+
+ if (data.profiler != null) {
+ MCUtil.asyncExecutor.execute(() -> {
+ MCUtil.ASYNC_EXECUTOR.execute(() -> {
+ sender.sendMessage(
+ Component.text()
+ .append(Component.text("Region #", NamedTextColor.DARK_GRAY))
Expand All @@ -1351,7 +1351,7 @@ index 0000000000000000000000000000000000000000..3c6f0359bd6196eeb497bc2a43a82186
+ }
+
+ profiler.createProfiler(region);
+ MCUtil.asyncExecutor.execute(() -> {
+ MCUtil.ASYNC_EXECUTOR.execute(() -> {
+ sender.sendMessage(
+ Component.text()
+ .append(Component.text("Started profiler #", NamedTextColor.DARK_GRAY))
Expand Down

0 comments on commit 815dd7b

Please sign in to comment.