Skip to content

Commit

Permalink
Prevent overflows...
Browse files Browse the repository at this point in the history
... which should never happen anyway
  • Loading branch information
ThexXTURBOXx committed Oct 27, 2024
1 parent d62d4b0 commit c2608e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public void tick() {
super.tick();
if (!inGround && !beenInGround) {
setXRot(getXRot() - 50.0f);
if (getXRot() <= -360) setXRot(getXRot() + 360.0f);
} else {
xRotO = 180.0f;
setXRot(xRotO);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public void tick() {
return;
}
setXRot(getXRot() - 70.0f);
if (getXRot() <= -360) setXRot(getXRot() + 360.0f);
if (soundTimer >= 3) {
if (!isInWater()) {
playSound(SoundEvents.ARROW_SHOOT, 0.6f,
Expand Down

0 comments on commit c2608e9

Please sign in to comment.