mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
Do not call modifyEntityTrackingRange on own range
The range is already modified, so this call will not do anything.
This commit is contained in:
parent
f9b1c374e4
commit
63d0de648f
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user