mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-30 00:15:57 -04:00
checkLineOfSight now checks if obj is in inventory
This commit is contained in:
@@ -909,6 +909,11 @@ public class SimulationService implements INetworkDispatch {
|
||||
if(obj1.getPlanet() != obj2.getPlanet())
|
||||
return false;
|
||||
|
||||
// If obj1 is an item in inventory and vice versa
|
||||
if (obj1 == obj2.getGrandparent() || obj2 == obj1.getGrandparent()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if(obj1.getGrandparent() != null || obj2.getGrandparent() != null) {
|
||||
|
||||
if(obj1.getGrandparent() == obj2.getGrandparent())
|
||||
|
||||
Reference in New Issue
Block a user