Skip to content

Commit

Permalink
fix angle comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Efnilite committed Dec 18, 2024
1 parent e726161 commit b950a85
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/main/java/ch/njol/skript/conditions/CondCompare.java
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ private boolean init(String expr) {
comparator = Comparators.getComparator(first.getReturnType(), secondReturnType);
}
}

}

return comparator != null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected Number[] get(Event event) {
Vector second = this.second.getSingle(event);
if (first == null || second == null)
return null;
return CollectionUtils.array(first.angle(second) * (float) 180 / Math.PI); // rad to deg
return CollectionUtils.array(first.angle(second) * (180.0 / Math.PI)); // rad to deg
}

@Override
Expand Down

0 comments on commit b950a85

Please sign in to comment.