mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Fix EarthBlast
This commit is contained in:
parent
efacd58e34
commit
e838c583dd
1 changed files with 16 additions and 14 deletions
|
@ -464,6 +464,9 @@ public class EarthBlast {
|
||||||
if (cooldowns.containsKey(player.getName())) {
|
if (cooldowns.containsKey(player.getName())) {
|
||||||
if (cooldowns.get(player.getName()) + ProjectKorra.plugin.getConfig().getLong("Properties.GlobalCooldown") >= System.currentTimeMillis()) {
|
if (cooldowns.get(player.getName()) + ProjectKorra.plugin.getConfig().getLong("Properties.GlobalCooldown") >= System.currentTimeMillis()) {
|
||||||
return;
|
return;
|
||||||
|
} else {
|
||||||
|
cooldowns.remove(player.getName());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
boolean cooldown = false;
|
boolean cooldown = false;
|
||||||
for (int id : instances.keySet()) {
|
for (int id : instances.keySet()) {
|
||||||
|
@ -479,7 +482,6 @@ public class EarthBlast {
|
||||||
cooldowns.put(player.getName(), System.currentTimeMillis());
|
cooldowns.put(player.getName(), System.currentTimeMillis());
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
redirectTargettedBlasts(player, ignore);
|
redirectTargettedBlasts(player, ignore);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue