Hopefully fix issue with arrows not doing damage

This commit is contained in:
addstar 2016-04-29 22:38:10 +10:00
parent 49af6f78ff
commit b1fabcdd9c

View File

@ -27,6 +27,7 @@ public class OnEntityDamageEvent implements Listener {
DamageCause cause = event.getCause(); DamageCause cause = event.getCause();
switch (cause) { switch (cause) {
case ENTITY_ATTACK: case ENTITY_ATTACK:
case PROJECTILE:
// Do nothing about damage from an entity // Do nothing about damage from an entity
// Any entity damage that makes it to here was already allowed by the EntityDamageByEntity event // Any entity damage that makes it to here was already allowed by the EntityDamageByEntity event
break; break;