mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Revert change to smoke particle handling
Have to do it this way, because not all block directions are valid for smoke
This commit is contained in:
parent
44e3e4d1e1
commit
309dfd50cd
@ -38,9 +38,16 @@ public final class ParticleEffectUtils {
|
|||||||
Location location = player.getEyeLocation();
|
Location location = player.getEyeLocation();
|
||||||
World world = player.getWorld();
|
World world = player.getWorld();
|
||||||
|
|
||||||
for (BlockFace face : BlockFace.values()) {
|
// Have to do it this way, because not all block directions are valid for smoke
|
||||||
world.playEffect(location, Effect.SMOKE, face);
|
world.playEffect(location, Effect.SMOKE, BlockFace.SOUTH_EAST);
|
||||||
}
|
world.playEffect(location, Effect.SMOKE, BlockFace.SOUTH);
|
||||||
|
world.playEffect(location, Effect.SMOKE, BlockFace.SOUTH_WEST);
|
||||||
|
world.playEffect(location, Effect.SMOKE, BlockFace.EAST);
|
||||||
|
world.playEffect(location, Effect.SMOKE, BlockFace.SELF);
|
||||||
|
world.playEffect(location, Effect.SMOKE, BlockFace.WEST);
|
||||||
|
world.playEffect(location, Effect.SMOKE, BlockFace.NORTH_EAST);
|
||||||
|
world.playEffect(location, Effect.SMOKE, BlockFace.NORTH);
|
||||||
|
world.playEffect(location, Effect.SMOKE, BlockFace.NORTH_WEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void playGreaterImpactEffect(LivingEntity livingEntity) {
|
public static void playGreaterImpactEffect(LivingEntity livingEntity) {
|
||||||
|
Loading…
Reference in New Issue
Block a user