proper InventoryClickEvent array index fix

This commit is contained in:
nossr50
2020-07-07 13:52:20 -07:00
parent bb167b00eb
commit cf6af4630d
2 changed files with 8 additions and 7 deletions

View File

@@ -435,6 +435,9 @@ public final class CombatUtils {
Projectile arrow = (Projectile) painSource;
ProjectileSource projectileSource = arrow.getShooter();
//Determine if the arrow belongs to a bow or xbow
if (projectileSource instanceof Player && PrimarySkillType.ARCHERY.shouldProcess(target)) {
Player player = (Player) projectileSource;