mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 19:50:37 +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()) {
|
for(Vector vec : aswipe.elements.keySet()) {
|
||||||
Location vectorLoc = aswipe.elements.get(vec);
|
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);
|
instances.remove(aswipe.id);
|
||||||
removed = true;
|
removed = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue