2019-02-23 17:17:41 +00:00
|
|
|
From a77d163e8cf3a60d91946ea48bc4a3939fb865b2 Mon Sep 17 00:00:00 2001
|
2018-08-15 05:20:40 +00:00
|
|
|
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
|
2019-01-01 03:15:55 +00:00
|
|
|
index 28d0954a..7ad9400a 100644
|
2018-08-15 05:20:40 +00:00
|
|
|
--- a/src/main/java/co/aikar/timings/TimingHistory.java
|
|
|
|
+++ b/src/main/java/co/aikar/timings/TimingHistory.java
|
|
|
|
@@ -118,7 +118,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;
|
|
|
|
--
|
2019-01-01 03:15:55 +00:00
|
|
|
2.20.1
|
2018-08-15 05:20:40 +00:00
|
|
|
|