Use distance map to optimise entity tracker / Misc Utils

Use the distance map to find candidate players for tracking.

This also ports a few utility changes from Tuinity
This commit is contained in:
Spottedleaf
2020-05-06 03:44:47 -04:00
committed by Aikar
parent d80d15174b
commit b4e629a283
102 changed files with 1158 additions and 714 deletions

View File

@@ -1,14 +1,14 @@
From 8329fdefafcca151133f8a8aa87fc35172878fa3 Mon Sep 17 00:00:00 2001
From 80a2bc8af10d734cb39781889e1caa58099ea2c7 Mon Sep 17 00:00:00 2001
From: Aikar <aikar@aikar.co>
Date: Mon, 28 Mar 2016 20:32:58 -0400
Subject: [PATCH] Entity AddTo/RemoveFrom World Events
diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java
index 9d0edf5382..fd42f34004 100644
index 3769f0533d..f8d1cb0231 100644
--- a/src/main/java/net/minecraft/server/WorldServer.java
+++ b/src/main/java/net/minecraft/server/WorldServer.java
@@ -1148,7 +1148,7 @@ public class WorldServer extends World {
@@ -1146,7 +1146,7 @@ public class WorldServer extends World {
if (entity instanceof EntityInsentient) {
this.navigators.remove(((EntityInsentient) entity).getNavigation());
}
@@ -17,7 +17,7 @@ index 9d0edf5382..fd42f34004 100644
entity.valid = false; // CraftBukkit
}
@@ -1186,6 +1186,7 @@ public class WorldServer extends World {
@@ -1184,6 +1184,7 @@ public class WorldServer extends World {
entity.origin = entity.getBukkitEntity().getLocation();
}
// Paper end
@@ -26,5 +26,5 @@ index 9d0edf5382..fd42f34004 100644
}
--
2.26.2
2.26.0