Do not call modifyEntityTrackingRange on own range

The range is already modified, so this call will not do anything.
This commit is contained in:
Spottedleaf 2024-11-27 12:19:39 -08:00
parent f9b1c374e4
commit 63d0de648f

View File

@ -25455,7 +25455,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
- Iterator iterator = this.entity.getIndirectPassengers().iterator(); - Iterator iterator = this.entity.getIndirectPassengers().iterator();
+ // Paper start - optimise entity tracker + // Paper start - optimise entity tracker
+ final Entity entity = this.entity; + final Entity entity = this.entity;
+ int range = ca.spottedleaf.moonrise.common.PlatformHooks.get().modifyEntityTrackingRange(entity, this.range); + int range = this.range;
- while (iterator.hasNext()) { - while (iterator.hasNext()) {
- Entity entity = (Entity) iterator.next(); - Entity entity = (Entity) iterator.next();