2020-04-02 21:07:06 +00:00
|
|
|
From 5299bd10c554dafa755cac2640c176f301a4a246 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
|
2020-04-02 21:07:06 +00:00
|
|
|
index ddaed8127..203cda0f9 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
|
2019-03-24 21:47:23 +00:00
|
|
|
@@ -119,7 +119,7 @@ public class TimingHistory {
|
2018-08-15 05:20:40 +00: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;
|
|
|
|
--
|
2020-04-02 21:07:06 +00:00
|
|
|
2.25.1
|
2018-08-15 05:20:40 +00:00
|
|
|
|