From 309dfd50cd97847b20b93f1650a055b8cdde011a Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 15 Oct 2013 08:38:59 -0400 Subject: [PATCH] Revert change to smoke particle handling Have to do it this way, because not all block directions are valid for smoke --- .../nossr50/util/skills/ParticleEffectUtils.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/skills/ParticleEffectUtils.java b/src/main/java/com/gmail/nossr50/util/skills/ParticleEffectUtils.java index d51c6493d..9cd3fe8cd 100644 --- a/src/main/java/com/gmail/nossr50/util/skills/ParticleEffectUtils.java +++ b/src/main/java/com/gmail/nossr50/util/skills/ParticleEffectUtils.java @@ -38,9 +38,16 @@ public final class ParticleEffectUtils { Location location = player.getEyeLocation(); World world = player.getWorld(); - for (BlockFace face : BlockFace.values()) { - world.playEffect(location, Effect.SMOKE, face); - } + // 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); + 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) {