AirSwipe compare distance fix

This commit is contained in:
Jack Lin 2015-06-07 10:58:18 +12:00
parent 0207bb97b0
commit 2745c8b4c4

View file

@ -305,7 +305,7 @@ public class AirSwipe {
for(Vector vec : aswipe.elements.keySet()) {
Location vectorLoc = aswipe.elements.get(vec);
if(vectorLoc != null && vectorLoc.getWorld() != loc.getWorld() && vectorLoc.distance(loc) <= radius){
if(vectorLoc != null && !vectorLoc.getWorld().equals(loc.getWorld()) && vectorLoc.distance(loc) <= radius){
instances.remove(aswipe.id);
removed = true;
}