mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 20:07:41 +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();
|
||||
+ // Paper start - optimise entity tracker
|
||||
+ final Entity entity = this.entity;
|
||||
+ int range = ca.spottedleaf.moonrise.common.PlatformHooks.get().modifyEntityTrackingRange(entity, this.range);
|
||||
+ int range = this.range;
|
||||
|
||||
- while (iterator.hasNext()) {
|
||||
- Entity entity = (Entity) iterator.next();
|
||||
|
Loading…
Reference in New Issue
Block a user