Skip to content

Commit

Permalink
Fixed another bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Sour-o7 committed Mar 3, 2024
1 parent 40b3f97 commit 9f733d6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ public void onTick()
if (accumulationEnabled())
{
if (vibrationCountdown > 0)
vibrationCountdown--;
vibrationCountdown =- MinegasmConfig.tickFrequency;
else if (intensity > 0) {
intensity = Math.max(0, intensity - 5);
intensity = Math.max(0, intensity - 5 * MinegasmConfig.tickFrequency);
vibrationCountdown = streakCountdownAmount * MinegasmConfig.ticksPerSecond;
}
} else {
vibrationCountdown = Math.max(0, vibrationCountdown - 1);
vibrationCountdown = Math.max(0, vibrationCountdown - MinegasmConfig.tickFrequency);
}

vibrationFeedbackCountdown = Math.max(0, vibrationFeedbackCountdown - 1);
vibrationFeedbackCountdown = Math.max(0, vibrationFeedbackCountdown - MinegasmConfig.tickFrequency);
}

public void resetState()
Expand Down

0 comments on commit 9f733d6

Please sign in to comment.