Fixed default config

This commit is contained in:
Jules 2024-02-10 23:51:01 +01:00
parent 464daef7a8
commit 95e3d5fef4
3 changed files with 2 additions and 3 deletions

View File

@ -106,7 +106,7 @@ public class ItemUse implements Listener {
final ItemStack weaponUsed = player.getInventory().getItem(((MeleeAttackMetadata) event.getAttack()).getHand().toBukkit());
final NBTItem item = MythicLib.plugin.getVersion().getWrapper().getNBTItem(weaponUsed);
final Type itemType = Type.get(item);
if (itemType == Type.BLOCK) return;
if (itemType == null || itemType == Type.BLOCK) return;
// Prevent melee attacks with non-melee weapons
if (!itemType.hasMeleeAttacks()) {

View File

@ -65,7 +65,6 @@ default-item-capacity:
default:
attack-speed: 0.67
range: 16
blunt-rating: 33
recoil: 0.1
# Restart server when changing this option

View File

@ -1,6 +1,6 @@
FIGHTING_GAUNTLETS:
base:
material: IRON_HORSE_ARMOR
material: IRON_SHOVEL
lore:
- §7Tired of breaking your bones when
- §7doing hand-to-hand combat?