Passable - Elytra Flying

Exempt checking if a player collides with a block if they are flying with an elytra.
This commit is contained in:
CaptainObvious0 2019-03-07 21:28:55 -06:00 committed by GitHub
parent 72ca65a3b3
commit 5e04474b4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ public class Passable extends Check {
rayTracing.loop();
rayTracing.setIgnoreInitiallyColliding(false);
//rayTracing.setCutOppositeDirectionMargin(false);
if (rayTracing.collides() && !player.isSwimming()) {
if (rayTracing.collides() && !player.isSwimming() && !player.isGliding()) {
tags = "raytracing_collide_";
}
else if (rayTracing.getStepsDone() >= rayTracing.getMaxSteps()) {