Definitely fix

This commit is contained in:
Etil
2021-10-05 17:38:22 +02:00
committed by GitHub
parent fb2663eff7
commit b30084d797

View File

@@ -53,8 +53,8 @@ index fb572ccd5f2058e1e6ccb6e745e9ad71025c8998..418c3a4e8d38e6836b665f1f33306dcb
- // Yatopia end
+ private void consumeSection(int x, int y, int z, Consumer<EntitySection<T>> action) {
+ EntitySection<T> section = this.findTrackingSection(SectionPos.asLong(x, y, z));
+ if (section != null && section.getStatus().shouldTrack()) {
+ EntitySection<T> section = this.getSection(SectionPos.asLong(x, y, z));
+ if (section != null && section.getStatus().isAccessible()) {
+ action.accept(section);
+ }
}