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:
parent
ef24148a48
commit
72ca65a3b3
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue