SurvivalFly - 1.13 Swimming (Passable & Sea Pickle)
Exempts player from the "waterwalk" check if they are swimming. This will fix issues with players swimming over sea pickles and swimming under blocks with their head obstructed.
This commit is contained in:
parent
a861716f9a
commit
ef24148a48
|
@ -387,7 +387,7 @@ public class SurvivalFly extends Check {
|
|||
if (hDistanceAboveLimit <= 0D && hDistance > 0.1D && yDistance == 0D && !toOnGround && !fromOnGround
|
||||
&& lastMove.toIsValid && lastMove.yDistance == 0D
|
||||
&& BlockProperties.isLiquid(to.getTypeId()) && BlockProperties.isLiquid(from.getTypeId())
|
||||
&& !from.isHeadObstructed() && !to.isHeadObstructed() // TODO: Might decrease margin here.
|
||||
&& !from.isHeadObstructed() && !to.isHeadObstructed() && !player.isSwimming() // TODO: Might decrease margin here.
|
||||
) {
|
||||
// TODO: Relative hdistance.
|
||||
// TODO: Might check actual bounds (collidesBlock). Might implement + use BlockProperties.getCorrectedBounds or getSomeHeight.
|
||||
|
|
Loading…
Reference in New Issue