Reset hit sounds when hits reset
This commit is contained in:
parent
7175af2aa5
commit
d2d90d4887
File diff suppressed because one or more lines are too long
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user