SPIGOT-5214: setCooldown not working

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2019-07-26 09:40:09 +10:00
parent c31f9f7b90
commit 526ee7e53e

View file

@ -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