#650: Add method to get player's attack cooldown

This commit is contained in:
DiamondDagger590
2020-04-23 11:13:40 +10:00
committed by md_5
parent ef706b064e
commit 893ad93b3e
3 changed files with 26 additions and 9 deletions

View File

@@ -221,6 +221,15 @@
}
public void openSign(TileEntitySign tileentitysign) {}
@@ -939,7 +1030,7 @@
f *= 0.2F + f2 * f2 * 0.8F;
f1 *= f2;
- this.ey();
+ // this.ey(); // CraftBukkit - Moved to EntityLiving to reset the cooldown after the damage is dealt
if (f > 0.0F || f1 > 0.0F) {
boolean flag = f2 > 0.9F;
boolean flag1 = false;
@@ -978,8 +1069,15 @@
if (entity instanceof EntityLiving) {
f3 = ((EntityLiving) entity).getHealth();