Update to Meteor-Rejects to 1.21.10
Some checks failed
Java CI with Gradle / build (push) Has been cancelled
Some checks failed
Java CI with Gradle / build (push) Has been cancelled
This commit is contained in:
@@ -52,8 +52,9 @@ public class AntiCrash extends Module {
|
||||
cancel(event);
|
||||
} else if (event.packet instanceof EntityVelocityUpdateS2CPacket packet) {
|
||||
// velocity
|
||||
if (packet.getVelocityX() > 30_000_000 || packet.getVelocityY() > 30_000_000 || packet.getVelocityZ() > 30_000_000
|
||||
|| packet.getVelocityX() < -30_000_000 || packet.getVelocityY() < -30_000_000 || packet.getVelocityZ() < -30_000_000
|
||||
Vec3d velocity = packet.getVelocity();
|
||||
if (velocity.x > 30_000_000 || velocity.y > 30_000_000 || velocity.z > 30_000_000
|
||||
|| velocity.x < -30_000_000 || velocity.y < -30_000_000 || velocity.z < -30_000_000
|
||||
) cancel(event);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user