mirror of
https://gitlab.com/cable-mc/cobblemon.git
synced 2026-10-20 14:16:26 -04:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8b2c6e9eb |
+1
-1
@@ -105,7 +105,7 @@ interface RidingBehaviour<Settings : RidingBehaviourSettings, State : RidingBeha
|
||||
|
||||
|
||||
/**
|
||||
* Internal helpers to help behaviour specific calculations
|
||||
* Internal helpers for behaviour specific calculations
|
||||
*/
|
||||
companion object {
|
||||
/**
|
||||
|
||||
+1
@@ -111,6 +111,7 @@ class RidingController(
|
||||
// check if style is water and player is submerged
|
||||
val isEyeInLiquid = entity.isEyeInFluid(FluidTags.WATER) || entity.isEyeInFluid(FluidTags.LAVA)
|
||||
if (context?.style == RidingStyle.LIQUID && isEyeInLiquid) return false
|
||||
if (!entity.onGround() && driver.jumping) return true
|
||||
return (driver as DoubleJump).isDoubleJumping
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user