Plasma bolts will no longer hit the shooter. Ever.

This commit is contained in:
MachineMuse 2015-09-07 23:40:34 -06:00
parent 24d220d532
commit 784dde9caa

View file

@ -127,7 +127,7 @@ public class EntityPlasmaBolt extends EntityThrowable {
double damage = this.size / 50.0 * this.damagingness;
switch (event.typeOfHit) {
case ENTITY:
if (event.entityHit != null) {
if (event.entityHit != null && event.entityHit != shootingEntity) {
event.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.shootingEntity), (int) damage);
}
break;