mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-31 20:22:05 -07:00
Tracking Range Improvements
Sets tracking range of watermobs to animals instead of misc and simplifies code Also ignores Enderdragon, defaulting it to Mojang's setting
This commit is contained in:
@@ -386,3 +386,11 @@
|
||||
if (flag) {
|
||||
if (this.seenBy.add(player.connection)) {
|
||||
this.serverEntity.addPairing(player);
|
||||
@@ -1506,6 +1592,7 @@
|
||||
while (iterator.hasNext()) {
|
||||
Entity entity = (Entity) iterator.next();
|
||||
int j = entity.getType().clientTrackingRange() * 16;
|
||||
+ j = org.spigotmc.TrackingRange.getEntityTrackingRange(entity, j); // Paper
|
||||
|
||||
if (j > i) {
|
||||
i = j;
|
||||
|
Reference in New Issue
Block a user