mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-01-10 00:48:00 +00:00
Fixes EarthGrab errors which causes bending to break (#706)
This commit is contained in:
parent
c068463232
commit
3b597cc933
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue