浏览代码

Track spectral arrows for combat

Shane Freeder 5 年之前
父节点
当前提交
816b64cb70
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 4 0
      Changelog.txt
  2. 1 1
      src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java

+ 4 - 0
Changelog.txt

@@ -1,3 +1,7 @@
+Version 2.1.115
+    Fixed an issue with arrows causing exceptions with players not yet having data loaded
+    Spectral arrows are now tracked by mcMMO
+
 Version 2.1.114
     Fix some more locale usages, should aim to further prevent issues with oddball locales
     Fixed a bug where newer versions of MySQL did not like our rank command

+ 1 - 1
src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java

@@ -380,7 +380,7 @@ public final class CombatUtils {
                 }
             }
         }
-        else if (entityType == EntityType.ARROW) {
+        else if (entityType == EntityType.ARROW || entityType == EntityType.SPECTRAL_ARROW) {
             Arrow arrow = (Arrow) damager;
             ProjectileSource projectileSource = arrow.getShooter();