mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 22:16:03 +00:00
Gamebreaking flight false hotfix for 1.8.8
This commit is contained in:
1 parent
e9a99f0463
commit
cffd6d07ae
2 files changed
+4
-3
No files matched your search
@@ -111,11 +111,12 @@ public class FlightCheck {
|
|||||||
// End AirFlight
|
// End AirFlight
|
||||||
|
|
||||||
// Start AirClimb
|
// Start AirClimb
|
||||||
// TODO two hardcoded values here shouldn't be there, temp against false
|
// TODO three hardcoded values here shouldn't be there, temp against false
|
||||||
// positive
|
// positive
|
||||||
if (checksConfig.isSubcheckEnabled(CheckType.FLIGHT, "airClimb") && movementManager.lastMotionY > 0
|
if (checksConfig.isSubcheckEnabled(CheckType.FLIGHT, "airClimb") && movementManager.lastMotionY > 0
|
||||||
&& movementManager.motionY > 0 && movementManager.airTicks == 2
|
&& movementManager.motionY > 0 && movementManager.airTicks == 2
|
||||||
&& Math.round(movementManager.lastMotionY * 1000) != 420
|
&& Math.round(movementManager.lastMotionY * 1000) != 420
|
||||||
|
&& Math.round(movementManager.motionY * 1000) != 248
|
||||||
&& !(Math.round(movementManager.motionY * 1000) == 333
|
&& !(Math.round(movementManager.motionY * 1000) == 333
|
||||||
&& Math.round(movementManager.lastMotionY * 1000) != 333)
|
&& Math.round(movementManager.lastMotionY * 1000) != 333)
|
||||||
&& !AntiCheatReloaded.getManager().getBackend().justVelocity(player)
|
&& !AntiCheatReloaded.getManager().getBackend().justVelocity(player)
|
||||||
|
|||||||
@@ -26,9 +26,9 @@ EXPLOSION_DAMAGE_TIME: 5000
|
|||||||
# Amount of seconds to extend a players velocitized state after receiving velocity again
|
# Amount of seconds to extend a players velocitized state after receiving velocity again
|
||||||
VELOCITY_EXTENSION: 2
|
VELOCITY_EXTENSION: 2
|
||||||
# Time a player is considered to have a change in velocity
|
# Time a player is considered to have a change in velocity
|
||||||
VELOCITY_TIME: 2000
|
VELOCITY_TIME: 1000
|
||||||
# This is a set value and shouldn't be changed unless you know what you're doing
|
# This is a set value and shouldn't be changed unless you know what you're doing
|
||||||
VELOCITY_PREVENT: 5000
|
VELOCITY_PREVENT: 2000
|
||||||
# This is a set value and shouldn't be changed unless you know what you're doing
|
# This is a set value and shouldn't be changed unless you know what you're doing
|
||||||
VELOCITY_MAXTIMES: 2
|
VELOCITY_MAXTIMES: 2
|
||||||
# Minimum travel distance for move to be considered a teleport and subsequently be ignored
|
# Minimum travel distance for move to be considered a teleport and subsequently be ignored
|
||||||
|
|||||||
Reference in new issue
Block a user