File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/main/java/cybercat5555/faunus/core/entity/livingEntity Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -72,11 +72,11 @@ public void registerControllers(ControllerRegistrar controllers) {
72
72
}
73
73
74
74
protected <E extends HoatzinEntity > PlayState idleAnimController (final AnimationState <E > state ) {
75
- if (state .isMoving () && isOnGround ()) {
75
+ if (state .isMoving () && isBlockBelow ()) {
76
76
state .setAndContinue (WALKING_ANIM );
77
- } else if (!isOnGround ()) {
77
+ } else if (!isBlockBelow ()) {
78
78
state .setAndContinue (FLY_ANIM );
79
- } else if (!state .isMoving () && isOnGround ()) {
79
+ } else if (!state .isMoving () && isBlockBelow ()) {
80
80
state .setAndContinue (IDLE_ANIM );
81
81
}
82
82
@@ -91,8 +91,7 @@ public static DefaultAttributeContainer.Builder createMobAttributes() {
91
91
.add (EntityAttributes .GENERIC_MOVEMENT_SPEED , 0.6f );
92
92
}
93
93
94
- @ Override
95
- public boolean isOnGround () {
94
+ public boolean isBlockBelow () {
96
95
return !this .getWorld ().getBlockState (getBlockPos ().down ()).isAir ();
97
96
}
98
97
You can’t perform that action at this time.
0 commit comments