2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
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
|
2023-03-28 04:58:46 +02:00
|
|
|
index eb9d58f8852e732a1284beeaf542989301d21b1c..02e88db63be2d5e31da6b65157ba7b971b1f10f3 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/co/aikar/timings/TimingHistory.java
|
|
|
|
+++ b/src/main/java/co/aikar/timings/TimingHistory.java
|
2023-03-28 04:58:46 +02:00
|
|
|
@@ -120,7 +120,7 @@ public class TimingHistory {
|
2021-06-11 14:02:28 +02:00
|
|
|
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;
|