Reset hit sounds when hits reset

This commit is contained in:
PeytonPlayz595 2023-12-17 20:39:23 -05:00
parent 7175af2aa5
commit d2d90d4887
3 changed files with 599 additions and 597 deletions

1192
js/app.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -62,6 +62,7 @@ public final class SurvivalGameMode extends GameMode
breakBlock(x, y, z); breakBlock(x, y, z);
hits = 0; hits = 0;
prevHit = hits;
hitDelay = 5; hitDelay = 5;
} }
@ -107,6 +108,7 @@ public final class SurvivalGameMode extends GameMode
public void resetHits() public void resetHits()
{ {
this.hits = 0; this.hits = 0;
prevHit = hits;
this.hitDelay = 0; this.hitDelay = 0;
} }