checkLOS checks if obj1 is container of obj2

This commit is contained in:
Treeku
2014-04-08 05:53:01 +01:00
parent caca57b9b0
commit 10e8c40507
+2 -2
View File
@@ -909,8 +909,8 @@ 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()) {
// If obj1 is container of obj2 vice versa
if (obj1 == obj2.getContainer() || obj2 == obj1.getContainer() || obj1 == obj2.getGrandparent() || obj2 == obj1.getGrandparent()) {
return true;
}