Citizens2/main
Tom Miller fe024923cf
We can optimize a significant portion of LookClose's findNewTarget method with some changes: (#2103)
-Build the list of all potential Players and THEN sort by distance. A good chunk of the method's time was spend sorting things it didn't need to.
-Second, reorder the player checks for best performance, where getNPC() is the cheapest check and isPluginVanished is the most expensive check.

In somewhat minimal testing, these changes almost dropped findNewTarget off of my profiling entirely
2020-04-14 01:57:20 +08:00
..
lib fix vault dependence, remove hc repo 2019-02-19 02:12:27 -08:00
src/main We can optimize a significant portion of LookClose's findNewTarget method with some changes: (#2103) 2020-04-14 01:57:20 +08:00
pom.xml Allow placeholder API in /npc create, fix float persistence bug 2020-03-27 18:50:14 +08:00