mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 19:46:21 +01:00
20 lines
1.1 KiB
Diff
20 lines
1.1 KiB
Diff
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
|
|
index 3d4390f263e52aafa24b306b1fd20d088a4ffcd7..6f6eb1a2e6c8d49014a7ae44540ee282bae5200e 100644
|
|
--- a/src/main/java/co/aikar/timings/TimingHistory.java
|
|
+++ b/src/main/java/co/aikar/timings/TimingHistory.java
|
|
@@ -125,7 +125,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;
|