2018-09-09 07:14:52 +02:00
|
|
|
From f8ac6f3cc48002296e64c86e2c40179c672cf8ab Mon Sep 17 00:00:00 2001
|
2018-08-15 07:20:40 +02: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
|
2018-08-26 20:11:49 +02:00
|
|
|
index c2c2fb838..769facd80 100644
|
2018-08-15 07:20:40 +02: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;
|
|
|
|
--
|
|
|
|
2.18.0
|
|
|
|
|