Skip to content

Commit

Permalink
fix: entity.fast_retrieval not checking section tracking status befor…
Browse files Browse the repository at this point in the history
…e retrieving entities
  • Loading branch information
2No2Name committed Jun 13, 2021
1 parent cb651ff commit b8eb5b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void forEachInBox(Box box, Consumer<EntityTrackingSection<T>> action) {
for (int z = minZ; z <= maxZ; z++) {
for (int y = minY; y <= maxY; y++) {
EntityTrackingSection<T> section = this.findTrackingSection(ChunkSectionPos.asLong(x, y, z));
if (section != null) {
if (section != null && section.getStatus().shouldTrack()) {
action.accept(section);
}
}
Expand Down

0 comments on commit b8eb5b0

Please sign in to comment.