From 3b597cc93362b84b51cb48206f1c1f13059e6167 Mon Sep 17 00:00:00 2001 From: Loony Date: Thu, 26 Jan 2017 01:32:26 +0000 Subject: [PATCH] Fixes EarthGrab errors which causes bending to break (#706) --- src/com/projectkorra/projectkorra/earthbending/EarthGrab.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/projectkorra/projectkorra/earthbending/EarthGrab.java b/src/com/projectkorra/projectkorra/earthbending/EarthGrab.java index 16ade25f..c935e204 100644 --- a/src/com/projectkorra/projectkorra/earthbending/EarthGrab.java +++ b/src/com/projectkorra/projectkorra/earthbending/EarthGrab.java @@ -205,7 +205,6 @@ public class EarthGrab extends EarthAbility { dir.setY(0); } loc.add(dir); - ParticleEffect.BLOCK_CRACK.display((ParticleEffect.ParticleData) new ParticleEffect.BlockData(blockType, blockByte), 1F, 0.1F, 1F, 0.1F, 100, loc.add(0, -1, 0), 500); if (player.isDead() || !player.isOnline()) { remove(); return; @@ -218,6 +217,8 @@ public class EarthGrab extends EarthAbility { remove(); return; } + ParticleEffect.BLOCK_CRACK.display((ParticleEffect.ParticleData) new ParticleEffect.BlockData(blockType, blockByte), 1F, 0.1F, 1F, 0.1F, 100, loc.add(0, -1, 0), 500); + for (Entity e : GeneralMethods.getEntitiesAroundPoint(loc, 2.5)) { if (e.getEntityId() != player.getEntityId() && e instanceof LivingEntity) { closestEntity = e;