Skip to content

Commit

Permalink
replace default 0 with the trackrange
Browse files Browse the repository at this point in the history
  • Loading branch information
sathonay committed Jan 21, 2025
1 parent a85d305 commit 13c5a02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.sathonay.npaper.utils;

import net.minecraft.server.EntityTracker;

public interface IEntityTracker {
void track(EntityTracker tracker);
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void track() {
this.isMoving = true;
this.n = true;
EntityTracker entityTracker = ((WorldServer) this.tracker.world).getTracker();
entityTracker.performOnInRangePlayers(this.tracker, entityTracker.getEntityTrackingRange(this.tracker, 0), this::updatePlayer);
entityTracker.performOnInRangePlayers(this.tracker, entityTracker.getEntityTrackingRange(this.tracker, this.b), this::updatePlayer);
}

if (this.w != this.tracker.vehicle || this.tracker.vehicle != null && this.m % 60 == 0) {
Expand Down

0 comments on commit 13c5a02

Please sign in to comment.