Skip to content
Snippets Groups Projects
Commit 7191682e authored by HorridoJoho's avatar HorridoJoho
Browse files

Fix buffer heal cooldown

The buffer heal cooldown was not working because a conversion from seconds to milliseconds was missing.
parent f081e879
No related branches found
No related tags found
No related merge requests found
......@@ -311,7 +311,7 @@ public final class BufferService extends CustomServiceScript {
Long lastPlayableHealTime = LAST_PLAYABLES_HEAL_TIME.get(target.getObjectId());
if (lastPlayableHealTime != null) {
Long elapsedTime = System.currentTimeMillis() - lastPlayableHealTime;
Long healCooldown = Configuration.bufferService().getHealCooldown();
Long healCooldown = Configuration.bufferService().getHealCooldown() * 1000;
if (elapsedTime < healCooldown) {
long remainingTime = healCooldown - elapsedTime;
if (target == player) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment