aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0135-Don-t-use-snapshots-for-Timings-Tile-Entity-reports.patch
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2023-12-05 18:33:18 +0100
committerNassim Jahnke <[email protected]>2023-12-05 18:33:18 +0100
commit8e8d6aeeb0381b0c648605238f5445a4b7b041f3 (patch)
treee686fa54547d5cc1e2e9c5494f02b83832371c12 /patches/api/0135-Don-t-use-snapshots-for-Timings-Tile-Entity-reports.patch
parent2a1ace0cf289870e82d23cf6cbcd87493f26a188 (diff)
downloadPaper-8e8d6aeeb0381b0c648605238f5445a4b7b041f3.tar.gz
Paper-8e8d6aeeb0381b0c648605238f5445a4b7b041f3.zip
Finish API
Diffstat (limited to 'patches/api/0135-Don-t-use-snapshots-for-Timings-Tile-Entity-reports.patch')
-rw-r--r--patches/api/0135-Don-t-use-snapshots-for-Timings-Tile-Entity-reports.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/api/0135-Don-t-use-snapshots-for-Timings-Tile-Entity-reports.patch b/patches/api/0135-Don-t-use-snapshots-for-Timings-Tile-Entity-reports.patch
new file mode 100644
index 0000000000..83897ac115
--- /dev/null
+++ b/patches/api/0135-Don-t-use-snapshots-for-Timings-Tile-Entity-reports.patch
@@ -0,0 +1,19 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Aikar <[email protected]>
+Date: Wed, 15 Aug 2018 01:19:37 -0400
+Subject: [PATCH] Don't use snapshots for Timings Tile Entity reports
+
+
+diff --git a/src/main/java/co/aikar/timings/TimingHistory.java b/src/main/java/co/aikar/timings/TimingHistory.java
+index eb9d58f8852e732a1284beeaf542989301d21b1c..02e88db63be2d5e31da6b65157ba7b971b1f10f3 100644
+--- a/src/main/java/co/aikar/timings/TimingHistory.java
++++ b/src/main/java/co/aikar/timings/TimingHistory.java
+@@ -120,7 +120,7 @@ public class TimingHistory {
+ data.entityCounts.get(entity.getType()).increment();
+ }
+
+- for (BlockState tileEntity : chunk.getTileEntities()) {
++ for (BlockState tileEntity : chunk.getTileEntities(false)) {
+ if (tileEntity == null) {
+ Bukkit.getLogger().warning("Null tileentity detected in chunk at position x: " + chunk.getX() + ", z: " + chunk.getZ());
+ continue;