mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-06-26 06:14:42 +02:00
Demand the minimally needed type for isSamePos variants.
This commit is contained in:
parent
ae80e20457
commit
d06e658c7a
|
@ -627,7 +627,7 @@ public class TrigUtil {
|
|||
* the loc2
|
||||
* @return Returns false if either is null.
|
||||
*/
|
||||
public static boolean isSamePos(final IGetPositionWithLook loc1, final Location loc2) {
|
||||
public static boolean isSamePos(final IGetPosition loc1, final Location loc2) {
|
||||
return loc1 != null && loc2 != null
|
||||
&& loc1.getX() == loc2.getX() && loc1.getZ() == loc2.getZ() && loc1.getY() == loc2.getY();
|
||||
}
|
||||
|
@ -655,7 +655,7 @@ public class TrigUtil {
|
|||
* the loc2
|
||||
* @return Returns false if either is null.
|
||||
*/
|
||||
public static boolean isSamePos(final IGetPositionWithLook loc1, final IGetPositionWithLook loc2) {
|
||||
public static boolean isSamePos(final IGetPosition loc1, final IGetPosition loc2) {
|
||||
return loc1 != null && loc2 != null
|
||||
&& loc1.getX() == loc2.getX() && loc1.getZ() == loc2.getZ() && loc1.getY() == loc2.getY();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user