mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-02 17:12:57 -04:00
Decreased QuadTree sensitivity
This commit is contained in:
@@ -33,7 +33,7 @@ import java.util.NoSuchElementException;
|
||||
|
||||
public class QuadTree<V> {
|
||||
|
||||
private static final double DEFAULT_RANGE = 1E-5;
|
||||
private static final double DEFAULT_RANGE = 1E-3;
|
||||
|
||||
private final QuadNode headNode;
|
||||
private final double minX, minY, maxX, maxY;
|
||||
|
||||
@@ -286,7 +286,7 @@ public class ObjectAwareness extends Service {
|
||||
return;
|
||||
QuadTree <SWGObject> tree = getTree(l);
|
||||
synchronized (tree) {
|
||||
if (!tree.get(l.getX(), l.getZ()).contains(object))
|
||||
if (!tree.contains(l.getX(), l.getZ(), object))
|
||||
tree.put(l.getX(), l.getZ(), object);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user