[SPIGOT-2577] Follow Range loads all chunks in a block radius Created: 06/Aug/16  Updated: 07/Aug/16  Resolved: 07/Aug/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Borlea Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: chunks, entity
Environment:

Windows 10
Java 8
good enough specs but this issue isn't environment related


Plugin: Minecraft? EchoPet?

 Description   

This is more of an improvement rather than a bug but for some reason 'improvement' isn't an option which just confuses me.

The entity attribute FOLLOW_RANGE loads all chunks in a block radius of that range.

This is displayed in NavigationAbstract.a(Entity) where it creates a ChunkCache.
Now I see huge room for improvement because you never have to load a square radius around a player when you are just moving towards an entity in already loaded chunks. You just need to load the chunks between the two entities.



 Comments   
Comment by md_5 [ 07/Aug/16 ]

This is required for pathfinding. The optimal path for an entity to follow does not necessarily follow (and in many cases cannot, ie: when entities are diagonal from eachother) a straight line of chunks.

Generated at Tue Apr 15 09:25:49 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.