mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
Temp quadtree remove() fix
This commit is contained in:
@@ -263,6 +263,10 @@ public class SimulationService implements INetworkDispatch {
|
||||
}
|
||||
|
||||
public boolean remove(SWGObject object, float x, float y, boolean notifyObservers) {
|
||||
if (object == null || !object.isInQuadtree()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
boolean success = quadTrees.get(object.getPlanet().getName()).remove(x, y, object);
|
||||
object.setIsInQuadtree(success);
|
||||
if(success && notifyObservers) {
|
||||
|
||||
Reference in New Issue
Block a user