Skip to content

Commit

Permalink
Small tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticKoko committed Dec 10, 2024
1 parent 515d8b5 commit 09bcfd4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ open class HybridAquaticCritterEntity(
}

override fun hasNoDrag(): Boolean {
return false
return this.isSwimming
}

override fun tick() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ open class HybridAquaticCrustaceanEntity(
return false
}

override fun hasNoDrag(): Boolean {
return this.isSwimming
}

//#region SFX

override fun calculateNextStepSoundDistance(): Float {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import software.bernie.geckolib.core.animation.AnimationController
import software.bernie.geckolib.core.animation.RawAnimation
import software.bernie.geckolib.core.`object`.PlayState


class KarkinosEntity(entityType: EntityType<out HybridAquaticMinibossEntity>, world: World) :
HybridAquaticMinibossEntity(entityType, world) {

Expand Down Expand Up @@ -87,7 +88,7 @@ class KarkinosEntity(entityType: EntityType<out HybridAquaticMinibossEntity>, wo
}

override fun hasNoDrag(): Boolean {
return false
return this.isSwimming
}

private fun getHandSwingDuration(): Int {
Expand Down

0 comments on commit 09bcfd4

Please sign in to comment.