Fixed clouds taking a long time to burst

This commit is contained in:
Sollace 2019-02-01 11:37:11 +02:00
parent e00df3aa18
commit 292b09d6e5

View file

@ -4,6 +4,7 @@ import java.util.Map;
import java.util.Random; import java.util.Random;
import com.minelittlepony.unicopia.Predicates; import com.minelittlepony.unicopia.Predicates;
import com.minelittlepony.unicopia.Race;
import com.minelittlepony.unicopia.UBlocks; import com.minelittlepony.unicopia.UBlocks;
import com.minelittlepony.unicopia.UItems; import com.minelittlepony.unicopia.UItems;
import com.minelittlepony.unicopia.UParticles; import com.minelittlepony.unicopia.UParticles;
@ -527,12 +528,9 @@ public class EntityCloud extends EntityFlying implements IAnimals {
@Override @Override
public void onDeath(DamageSource s) { public void onDeath(DamageSource s) {
if (s == DamageSource.GENERIC || (s.getTrueSource() != null && s.getTrueSource() instanceof EntityPlayer)) { if (s == DamageSource.GENERIC || (s.getTrueSource() != null && s.getTrueSource() instanceof EntityPlayer)) {
if (!isBurning()) {
Particles.instance().getEntityEmitter().emitDestructionParticles(this, UBlocks.cloud.getDefaultState());
}
setDead(); setDead();
} }
super.onDeath(s); super.onDeath(s);
clearItemFloatingState(); clearItemFloatingState();
} }