aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0134-Don-t-use-snapshots-for-Timings-Tile-Entity-reports.patch
blob: 9e712f0a57c2cd1599fc391227d690cc5cb5c34d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 0a0e6308923f466ca96786b74811b9beeca83d73..e1b52eeecc1baf02c3e5d4bdf24ade769b2c3c75 100644
--- a/src/main/java/co/aikar/timings/TimingHistory.java
+++ b/src/main/java/co/aikar/timings/TimingHistory.java
@@ -123,7 +123,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;