Skip to content

Commit 566c894

Browse files
committed
POI comment correction
1 parent 6087104 commit 566c894

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

common/src/main/java/net/caffeinemc/mods/lithium/common/world/interests/iterator/NearbyPointOfInterestStream.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,6 @@ public NearbyPointOfInterestStream(Predicate<Holder<PoiType>> typeSelector,
193193

194194
@Override
195195
public boolean tryAdvance(Consumer<? super PoiRecord> action) {
196-
// Accepted POI:
197-
198-
// Order of the POI:
199-
// return closest accepted POI (L2 distance). If several exist:
200-
// return the one with most negative Y. If several exist:
201-
// return the one with most negative X. If several exist:
202-
// return the one with most negative Z. If several exist: Be confused about two POIs being in the same location.
203196

204197
if (this.pointIndex < this.points.size()) {
205198
if (this.tryAdvancePoint(action)) {

common/src/main/java/net/caffeinemc/mods/lithium/mixin/ai/poi/PoiManagerMixin.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,10 @@ public Stream<PoiRecord> getInRange(Predicate<Holder<PoiType>> predicate, BlockP
144144
Predicate<PoiRecord> afterSortPredicate, WorldBorder worldBorder) {
145145
// Order of the POI:
146146
// return closest accepted POI (L2 distance). If several exist:
147-
// return the one with most negative Y. If several exist:
148-
// return the one with most negative X. If several exist:
149-
// return the one with most negative Z. If several exist: Be confused about two POIs being in the same location.
147+
// return the one with most negative Y block coordinate. If several exist:
148+
// return the one with most negative X section coordinate. If several exist:
149+
// return the one with most negative Z section coordinate. If several exist:
150+
// return the first one in HashSet Spliterator order of the first poi type in HashMap iteration order (POI section data structures).
150151

151152
boolean worldBorderIsFarAway = worldBorder == null || worldBorder.getDistanceToBorder(origin.getX(), origin.getZ()) > radius + 3;
152153
Predicate<PoiRecord> poiPredicateAfterSorting;

0 commit comments

Comments
 (0)