mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-07 22:13:40 -04:00
Fixed LD bug ... again
This commit is contained in:
@@ -394,9 +394,9 @@ public class ObjectAwareness extends Service {
|
||||
private boolean isValidInRange(SWGObject obj, SWGObject inRange, Location objLoc) {
|
||||
if (inRange.getObjectId() == obj.getObjectId())
|
||||
return false;
|
||||
if (obj instanceof CreatureObject && ((CreatureObject) obj).isLoggedOutPlayer())
|
||||
if (inRange instanceof CreatureObject && ((CreatureObject) inRange).isLoggedOutPlayer())
|
||||
return false;
|
||||
if (obj.getParent() != null)
|
||||
if (inRange.getParent() != null)
|
||||
return false;
|
||||
int distSquared = distanceSquared(objLoc, inRange.getWorldLocation());
|
||||
int loadSquared = (int) (square(inRange.getLoadRange()) + 0.5);
|
||||
|
||||
Reference in New Issue
Block a user