Parcourir la source

Fixed killed entities not being removed from arrowTracker

bm01 il y a 13 ans
Parent
commit
5a394ee744
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/main/java/com/gmail/nossr50/skills/archery/Archery.java

+ 1 - 0
src/main/java/com/gmail/nossr50/skills/archery/Archery.java

@@ -46,6 +46,7 @@ public class Archery {
 
         if (quantity != null) {
             Misc.dropItems(entity.getLocation(), new ItemStack(Material.ARROW), quantity);
+            arrowTracker.remove(entity);
         }
     }