mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-06 15:58:12 +01:00
Adjust fight.reach to use optimal reference y.
This commit is contained in:
parent
308117054a
commit
f913beba1f
@ -89,7 +89,7 @@ public class Reach extends Check {
|
|||||||
final double dY = dRef.getY();
|
final double dY = dRef.getY();
|
||||||
if (pY <= dY); // Keep the foot level y.
|
if (pY <= dY); // Keep the foot level y.
|
||||||
else if (pY >= dY + height) dRef.setY(dY + height); // Highest ref y.
|
else if (pY >= dY + height) dRef.setY(dY + height); // Highest ref y.
|
||||||
else dRef.setY(0); // Level with damaged.
|
else dRef.setY(pY); // Level with damaged.
|
||||||
|
|
||||||
final Vector pRel = dRef.toVector().subtract(pRef.toVector());
|
final Vector pRel = dRef.toVector().subtract(pRef.toVector());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user