fixed effect powders dropping invalid item when broken

Closes #253
This commit is contained in:
Ell 2022-06-01 15:55:31 +02:00
parent 0705b2e1e7
commit 31c0a9221e

View file

@ -136,8 +136,8 @@ public class EntityEffectInhibitor extends Entity implements IVisualizable {
@Override
public boolean hurt(DamageSource source, float amount) {
if (source instanceof EntityDamageSource && !this.level.isClientSide) {
this.kill();
this.spawnAtLocation(this.getDrop(), 0F);
this.kill();
return true;
} else {
return super.hurt(source, amount);