mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-02 11:21:20 +01:00
Fixed 1.12 attack speed
This commit is contained in:
parent
a7795c957b
commit
38c9c7214a
@ -2,6 +2,7 @@ package net.Indyuce.mmoitems.stat;
|
|||||||
|
|
||||||
import org.bukkit.attribute.Attribute;
|
import org.bukkit.attribute.Attribute;
|
||||||
|
|
||||||
|
import net.Indyuce.mmoitems.MMOItems;
|
||||||
import net.Indyuce.mmoitems.api.item.build.MMOItemBuilder;
|
import net.Indyuce.mmoitems.api.item.build.MMOItemBuilder;
|
||||||
import net.Indyuce.mmoitems.api.util.StatFormat;
|
import net.Indyuce.mmoitems.api.util.StatFormat;
|
||||||
import net.Indyuce.mmoitems.stat.data.StatData;
|
import net.Indyuce.mmoitems.stat.data.StatData;
|
||||||
@ -11,7 +12,7 @@ import net.Indyuce.mmoitems.version.nms.ItemTag;
|
|||||||
|
|
||||||
public class Attack_Speed extends AttributeStat {
|
public class Attack_Speed extends AttributeStat {
|
||||||
public Attack_Speed() {
|
public Attack_Speed() {
|
||||||
super(VersionMaterial.LIGHT_GRAY_DYE.toItem(), "Attack Speed", new String[] { "The speed at which your weapon strikes.", "In attacks/sec." }, "attack-speed", Attribute.GENERIC_ATTACK_SPEED, 4);
|
super(VersionMaterial.LIGHT_GRAY_DYE.toItem(), "Attack Speed", new String[] { "The speed at which your weapon strikes.", "In attacks/sec." }, "attack-speed", Attribute.GENERIC_ATTACK_SPEED, MMOItems.plugin.getVersion().isBelowOrEqual(1, 12) ? 1.6 : 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user