mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
SPIGOT-5214: setCooldown not working
By: md_5 <git@md-5.net>
This commit is contained in:
parent
c31f9f7b90
commit
526ee7e53e
1 changed files with 1 additions and 1 deletions
|
@ -662,7 +662,7 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
|
||||||
Preconditions.checkArgument(material != null, "material");
|
Preconditions.checkArgument(material != null, "material");
|
||||||
Preconditions.checkArgument(ticks >= 0, "Cannot have negative cooldown");
|
Preconditions.checkArgument(ticks >= 0, "Cannot have negative cooldown");
|
||||||
|
|
||||||
getHandle().getCooldownTracker().a(CraftMagicNumbers.getItem(material), ticks);
|
getHandle().getCooldownTracker().setCooldown(CraftMagicNumbers.getItem(material), ticks);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue