Use explosion particles instead of createExplosion
This commit is contained in:
parent
918a817283
commit
50fa8b02f1
@ -365,7 +365,8 @@ public class Treasure
|
||||
|
||||
if (block.getType().equals(Material.CHEST))
|
||||
{
|
||||
block.getLocation().getWorld().createExplosion(block.getLocation().add(0.5, 0.5, 0.5), 0F);
|
||||
UtilParticle.PlayParticle(UtilParticle.ParticleType.EXPLODE, block.getLocation().add(0.5, 0.5, 0.5), 0F, 0F, 0F, 0F, 1);
|
||||
// block.getLocation().getWorld().createExplosion(block.getLocation().add(0.5, 0.5, 0.5), 0F);
|
||||
}
|
||||
block.getLocation().getWorld().playEffect(block.getLocation(), Effect.STEP_SOUND, block.getTypeId());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user