Skip to content

Commit

Permalink
Update Crab.java
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Oct 16, 2023
1 parent e3d8741 commit 0bc93ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/frozenblock/wilderwild/entity/Crab.java
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public void tick() {
if (!isClient) {
this.setClimbing(this.horizontalCollision);
if (this.isClimbing()) {
this.setTargetClimbAnimX((float) -Math.cos(((getAngleFromVec3(this.getDeltaMovement()) - getAngleFromVec3(this.getViewVector(1F))) * Math.PI) / 180F));
this.setTargetClimbAnimX((getAngleFromVec3(this.getDeltaMovement()) - this.getViewYRot(1F)) / 180F);
} else {
this.setTargetClimbAnimX(0F);
}
Expand Down

0 comments on commit 0bc93ce

Please sign in to comment.