Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-23 23:00:08 +01:00
SPIGOT-5214: setCooldown not working
Dieser Commit ist enthalten in:
Ursprung
860b354014
Commit
f744c09c02
@ -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
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren