From f744c09c0243076cf86b80472bb1b1f1a9690008 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 26 Jul 2019 09:40:09 +1000 Subject: [PATCH] SPIGOT-5214: setCooldown not working --- .../java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java index 28ebb73a9b..027063239b 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java @@ -662,7 +662,7 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity { Preconditions.checkArgument(material != null, "material"); Preconditions.checkArgument(ticks >= 0, "Cannot have negative cooldown"); - getHandle().getCooldownTracker().a(CraftMagicNumbers.getItem(material), ticks); + getHandle().getCooldownTracker().setCooldown(CraftMagicNumbers.getItem(material), ticks); } @Override