mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fixed clouds taking a long time to burst
This commit is contained in:
parent
e00df3aa18
commit
292b09d6e5
1 changed files with 2 additions and 4 deletions
|
@ -4,6 +4,7 @@ import java.util.Map;
|
|||
import java.util.Random;
|
||||
|
||||
import com.minelittlepony.unicopia.Predicates;
|
||||
import com.minelittlepony.unicopia.Race;
|
||||
import com.minelittlepony.unicopia.UBlocks;
|
||||
import com.minelittlepony.unicopia.UItems;
|
||||
import com.minelittlepony.unicopia.UParticles;
|
||||
|
@ -527,12 +528,9 @@ public class EntityCloud extends EntityFlying implements IAnimals {
|
|||
@Override
|
||||
public void onDeath(DamageSource s) {
|
||||
if (s == DamageSource.GENERIC || (s.getTrueSource() != null && s.getTrueSource() instanceof EntityPlayer)) {
|
||||
if (!isBurning()) {
|
||||
Particles.instance().getEntityEmitter().emitDestructionParticles(this, UBlocks.cloud.getDefaultState());
|
||||
}
|
||||
|
||||
setDead();
|
||||
}
|
||||
|
||||
super.onDeath(s);
|
||||
clearItemFloatingState();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue