mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
AirSwipe compare distance fix
This commit is contained in:
parent
0207bb97b0
commit
2745c8b4c4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue