Plasma bolts will no longer hit the shooter. Ever.
This commit is contained in:
parent
24d220d532
commit
784dde9caa
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ public class EntityPlasmaBolt extends EntityThrowable {
|
||||||
double damage = this.size / 50.0 * this.damagingness;
|
double damage = this.size / 50.0 * this.damagingness;
|
||||||
switch (event.typeOfHit) {
|
switch (event.typeOfHit) {
|
||||||
case ENTITY:
|
case ENTITY:
|
||||||
if (event.entityHit != null) {
|
if (event.entityHit != null && event.entityHit != shootingEntity) {
|
||||||
event.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.shootingEntity), (int) damage);
|
event.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.shootingEntity), (int) damage);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue