Passable - 1.13 Swimming (1x1 swimming)

Exempts player from "colliding" with block margins if they are swimming, since player location thinks they player's feet are going through the block.
ToDo: Update players location when they are swimming, to prevent abuse of this exemption.
This commit is contained in:
CaptainObvious0 2019-03-07 20:19:13 -06:00 committed by GitHub
parent ef24148a48
commit 72ca65a3b3
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()) {
if (rayTracing.collides() && !player.isSwimming()) {
tags = "raytracing_collide_";
}
else if (rayTracing.getStepsDone() >= rayTracing.getMaxSteps()) {