Fixed validation error on crossbows

This commit is contained in:
Jules 2023-01-25 14:51:00 +01:00
parent d11cee182d
commit 207411fc87

View File

@ -40,7 +40,7 @@ public class Crossbow extends UntargetedWeapon {
MMOItems.plugin.getEntities().registerCustomProjectile(getNBTItem(), stats, arrow, 1);
// Trigger abilities
stats.getData().triggerSkills(TriggerType.SHOOT_BOW, arrow);
stats.getData().triggerSkills(TriggerType.SHOOT_BOW, slot, arrow);
new CustomProjectile(stats.getData(), CustomProjectile.ProjectileType.ARROW, arrow, slot);
}
}