mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Do not track arrow if the bow has Infinity
This commit is contained in:
parent
032472dcb3
commit
55e832d4f6
@ -1,6 +1,7 @@
|
||||
package com.gmail.nossr50.util;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.enchantments.Enchantment;
|
||||
import org.bukkit.entity.AnimalTamer;
|
||||
import org.bukkit.entity.Animals;
|
||||
import org.bukkit.entity.Arrow;
|
||||
@ -263,7 +264,9 @@ public class Combat {
|
||||
archeryManager.dazeCheck((Player) target, event);
|
||||
}
|
||||
|
||||
if (!(shooter.getItemInHand().containsEnchantment(Enchantment.ARROW_INFINITE))) {
|
||||
archeryManager.trackArrows(target);
|
||||
}
|
||||
|
||||
if (target != shooter) {
|
||||
PlayerProfile PP = Users.getProfile(shooter);
|
||||
|
Loading…
Reference in New Issue
Block a user