mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-06-01 11:13:38 +02:00
parent
0705b2e1e7
commit
31c0a9221e
|
@ -136,8 +136,8 @@ public class EntityEffectInhibitor extends Entity implements IVisualizable {
|
||||||
@Override
|
@Override
|
||||||
public boolean hurt(DamageSource source, float amount) {
|
public boolean hurt(DamageSource source, float amount) {
|
||||||
if (source instanceof EntityDamageSource && !this.level.isClientSide) {
|
if (source instanceof EntityDamageSource && !this.level.isClientSide) {
|
||||||
this.kill();
|
|
||||||
this.spawnAtLocation(this.getDrop(), 0F);
|
this.spawnAtLocation(this.getDrop(), 0F);
|
||||||
|
this.kill();
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return super.hurt(source, amount);
|
return super.hurt(source, amount);
|
||||||
|
|
Loading…
Reference in a new issue