mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-27 19:24:44 +02:00
2.1.117
This commit is contained in:
@ -43,12 +43,18 @@ public final class ParticleEffectUtils {
|
||||
return;
|
||||
}
|
||||
|
||||
if(location.getWorld() == null)
|
||||
return;
|
||||
|
||||
location.getWorld().playEffect(location, Effect.MOBSPAWNER_FLAMES, 1);
|
||||
}
|
||||
|
||||
public static void playSmokeEffect(Location location) {
|
||||
World world = location.getWorld();
|
||||
|
||||
if(world == null)
|
||||
return;
|
||||
|
||||
// Have to do it this way, because not all block directions are valid for smoke
|
||||
world.playEffect(location, Effect.SMOKE, BlockFace.SOUTH_EAST);
|
||||
world.playEffect(location, Effect.SMOKE, BlockFace.SOUTH);
|
||||
|
Reference in New Issue
Block a user