1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-04-02 09:46:24 +02:00

Track spectral arrows for combat

This commit is contained in:
Shane Freeder 2020-01-28 16:37:02 +00:00
parent dceee5554d
commit 816b64cb70
No known key found for this signature in database
GPG Key ID: A3F61EA5A085289C
2 changed files with 5 additions and 1 deletions
Changelog.txt
src/main/java/com/gmail/nossr50/util/skills

@ -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 Version 2.1.114
Fix some more locale usages, should aim to further prevent issues with oddball locales 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 Fixed a bug where newer versions of MySQL did not like our rank command

@ -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; Arrow arrow = (Arrow) damager;
ProjectileSource projectileSource = arrow.getShooter(); ProjectileSource projectileSource = arrow.getShooter();